Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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

Solved

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

jamalsoueidan
Shopify Partner
66 3 9

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)

jamalsoueidan
Shopify Partner
66 3 9

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)

jamalsoueidan
Shopify Partner
66 3 9

This is an accepted solution.

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