# "View current draft" does not work for Shopify pages

**URL:** <https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895>\
**Category:** General\
**Created:** [July 17, 2023, 11:12pm UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895 "2023-07-17T23:12:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReavoEnd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/reavoend/32/2058_2.png) [@ReavoEnd](https://forum.builder.io/u/ReavoEnd)\
**Post date:** [July 17, 2023, 11:12pm UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895/1 "2023-07-17T23:12:11Z")

</div>

**Builder content link**  
`https://builder.io/content/d621971c72094ba68a96cdbb9dd1d28d`

**Builder public api key**  
`64dd5478e25746bf9db3b6c0319905f6`

**What are you trying to accomplish**  
I want to be able to preview a Shopify page before publishing it

**Screenshots or video link**

**Code stack you are integrating Builder with**  
react

---

<div class="post-metadata">

**Author:** ![nicke920](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nicke920](https://forum.builder.io/u/nicke920)\
**Post date:** [July 17, 2023, 11:49pm UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895/2 "2023-07-17T23:49:18Z")

</div>

Hi there, thanks for reaching out!  
It appears you have quite a bit of custom code written. As a first troubleshooting method, if you remove the custom code and save the content, and try the preview link again, does it work then?

 ![Screen Shot 2023-07-17 at 4.48.53 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/6/65c25c466887d0de2033b07ef0f7853cacceea89.jpeg)

---

<div class="post-metadata">

**Author:** ![ReavoEnd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/reavoend/32/2058_2.png) [@ReavoEnd](https://forum.builder.io/u/ReavoEnd)\
**Post date:** [July 18, 2023, 12:08am UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895/3 "2023-07-18T00:08:09Z")

</div>

Thanks for the swift reply. A reactionary first thought is, “why would custom code make a difference if the **published** page loads OK?”

For reference, this content which is the currently live page loads fine on the web store, but does not load in the Builder preview:  
`https://store.bigscreenvr.com/products/bigscreen-beyond`  
**– vs –**  
`https://builder.io/content/26522d31d06f4ecf92da68693db2f01b`

I have custom code in many places. I’ll try removing one at a time.

---

<div class="post-metadata">

**Author:** ![ReavoEnd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/reavoend/32/2058_2.png) [@ReavoEnd](https://forum.builder.io/u/ReavoEnd)\
**Post date:** [July 18, 2023, 12:45am UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895/4 "2023-07-18T00:45:44Z")

</div>

Update: I tested this Shopify page with all of my own custom code removed, and Builder’s page preview still does not load.

---

<div class="post-metadata">

**Author:** ![nicke920](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nicke920](https://forum.builder.io/u/nicke920)\
**Post date:** [July 18, 2023, 8:59pm UTC](https://forum.builder.io/t/view-current-draft-does-not-work-for-shopify-pages/3895/5 "2023-07-18T20:59:23Z")

</div>

Hi there,

Thank you for trying that out for us. I’ve taken a deeper look and the issue is not the “view current draft”, but rather the Shopify Linked Content section is not outputting anything. We saw that this section is linked to dynamic data custom code, so the issue lies within this block. More particularly it could the result of window.BigData returning as undefined in the console  
 ![Screen Shot 2023-07-18 at 1.59.08 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/1/1a1352b49ad11981bedd54e36de94ea83f99a601.png)

 ![Screen Shot 2023-07-18 at 1.56.44 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/4/4321bf5521d8c3ecaae05de220d68fa132893e33.png)

When we tested out adding just a basic text block and previewing the page, we were able to see it appear: [Loom | Free Screen & Video Recording Software | Loom](https://loom.com/i/d39cc4fb7455429aaa10240439734b1a)
