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! 

0 Likes
BStubbs
Shopify Partner
124 14 46

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!