FROM CACHE - en_header

Getting ShopOrigin from shopify store

Solved
Erichow
New Member
2 0 0

Hello,

I am creating an app which allows customers to interact with a button that stores information in a database. However, I am currently having difficulty associating the customer action to the specific shopify store. I was wondering how to pass the .myshopify.com URL to my backend to store this on a database so it could be eventually displayed in the admin. Any help would be appreciated! 

Accepted Solution (1)

Accepted Solutions
BStubbs
Shopify Partner
136 16 60

This is an accepted solution.

Hi @Erichow ! Welcome to the forums!

I think you'll be looking for the permanent domain!

https://shopify.dev/docs/themes/liquid/reference/objects/shop#shop-permanent_domain

 

Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!

View solution in original post

Reply 1 (1)
BStubbs
Shopify Partner
136 16 60

This is an accepted solution.

Hi @Erichow ! Welcome to the forums!

I think you'll be looking for the permanent domain!

https://shopify.dev/docs/themes/liquid/reference/objects/shop#shop-permanent_domain

 

Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!