How to get the myshopify.com domain of the store

Solved
EddieLuong
Shopify Partner
39 1 19

For the Shopify stores that use the domain in format e.g: https://abcde.com. How can I get its .myshopify.com domain?

In the liquid template, is there any object which i can get the myshopify.com domain from?

Would appreciate any help.

Accepted Solution (1)
EddieLuong
Shopify Partner
39 1 19

This is an accepted solution.

Hi all,

Thanks for your suggestions. Based on the Shopify document, i found we can get .myshopify.com domain from liquid object as below:

 

Capture7.JPG

 

Thanks

View solution in original post

Replies 3 (3)
Shop_Lovers
Shopify Partner
280 45 70

You can get the

URL:

{{ shop.url }}

Domain :
{{ shop.domain }}

 

Hit Like and Accept as Solution

AvadaCommerce
Shopify Partner
3879 839 919

Hi @EddieLuong,

 

You can find the myshopify domain of a store by viewing the source code.

 

Simply go to any Shopify store, right-click on the page and select View Page Source in Google Chrome. Or Show Page Source in Safari. Once you will see the HTML code of the store, press CTRL + F in Windows or Command ⌘ + F in macOS, and enter "myshopify.com".

AvadaCommerce_0-1657014248615.png

Often, it is stored in the "Shopify.shop" variable located in the <head> section.

 

I hope it helps.

banned
EddieLuong
Shopify Partner
39 1 19

This is an accepted solution.

Hi all,

Thanks for your suggestions. Based on the Shopify document, i found we can get .myshopify.com domain from liquid object as below:

 

Capture7.JPG

 

Thanks