Solved

How can I handle different URLs in my Shopify app development?

James105
Shopify Partner
14 1 0

I'm developing application, in the admin app the shop url is

 

xxx.myshopify.com

 

when I run the extension in the storefront, i get different url.

 

xxx.dk

 

I need to handle this case, the webhooks give me the shop as xxx.myshopify and not the domain (node).

 

in the storefront i can't get the value as xxx.myshopify.com from the liquid variables?

 

 

Accepted Solution (1)

James105
Shopify Partner
14 1 0

This is an accepted solution.

Okay I found it, Shopify.shop using javascript and not liquid variables

View solution in original post

Reply 1 (1)

James105
Shopify Partner
14 1 0

This is an accepted solution.

Okay I found it, Shopify.shop using javascript and not liquid variables