Hey everyone,
I came across this requirement in the app guidelines: “If your app adds a visible element to a merchant’s storefront, then you must allow the merchant to preview edits before saving and publishing changes to your app’s visual storefront component.”
You can find this requirement underneath the Online Store section at #5 in the Shopify App Guidelines.
My question is whether this is a strict requirement for app proxies as well, or if it is primarily targeted at theme app extensions and app blocks.
My app is a bundle builder and it uses an app proxy to display a page on the Shopify store so that customers can add products to their bundle.
Do I need to allow merchants to preview the page in the app?
And if it is a requirement for app proxies, what can I use to show them a preview of what the page will look like on their store?
Also please note that my app is not built with remix. I am using Express.js and the @shopify/shopify-api npm package.
Since your Proxy just renders the middle of a sandwich, not the bread (Shopify retains the header and footer of the rendering), why not just create some fake meat and mustard and place that as the example of what the proxy would show. Seems easy enough.
Hey thanks for your response. I just wanted to be sure that it was something I needed to do.
I’ll add a preview button to my app and pass in some fake data so merchants can see what the page will look like.
1 Like
@hunkybill I noticed some other apps just have a preview button that links to the app proxy URL. Is that all I need to do or I need to show the preview inside the app admin.
@Liam-Shopify What do you think about this?
Hi,
Honestly, I cannot see how this is such an issue! You have a proxy route in your App does apparently processes an incoming request and does something like one of:
a) returns some HTML/Liquid
b) figures out something and returns JSON
Obviously Shopify cares ZERO for this in any way shape or form, as long as it works. If you choose to show off a preview of what it COULD or CAN look like, awesome! Good for you. I do not think Shopify is handing out grades of A, B or C on this kind of detail. Maybe. Sure. Possibly maybe. Sure. But honestly, who knows. They have a small dedicated staff just concerned Apps do oAuth correctly and render decent Polaris never mind intricate detailed work like that! So my advice, which should count for little at this point, is to do whatever makes it clear what your App does, and leave it at that!