Hi, can multiple custom loaders be used for the multidomain website? We have 4 Shopify multidomain (.com/.de/.en/.ch) and use the Stape Business package. The backend of those 4 multidomains the same.
Thanks.
Hi, can multiple custom loaders be used for the multidomain website? We have 4 Shopify multidomain (.com/.de/.en/.ch) and use the Stape Business package. The backend of those 4 multidomains the same.
Thanks.
Yes, of course, you can generate a loader for each subdomain you have pointed to your container instance on Stape
no, you’re launching 4 loaders at all times, and you should just give a subdomain dynamically depending on the current domain
Okay. Can you tell me how should I do that? Is there any document or article to solve this? I didn’t find any doc regarding this from Stape.
you didn’t find anything on Stape because this has nothing to do with Stape, it’s how you embed a loader in your JS. In any case, you need something like below
if (location.hostname.includes('/de')) {
// loader 1
}
else if (location.hostname.includes('/en')) {
//loader 2
}
...
Thanks. I appreciate your help.
that definitely the way
Are you using markets? I would have thought it would have translated to your main domain, ie:
domain.com > domain
domain.de > de.domain
domain.en > en.domain
domain.ch > ch.domain
you could use localisation as well for this.
localization.market
which might be a little easier to deal with checkout.