Running multiple domains from one shopify store - Also all with a slight difference, is it possible?

Tourist
5 0 3

What Doug Steimel said. I have done it and it "works".

You're gonna have to tinker with liquid files to keep a separate "theme/identity" for each one because you'll want your store logo on the header, not your Shopify store name across all sites, right?

You'll also need to group products into collections, whereas these collections will not be collections anymore, they'll be now business units  -at least that's how it'll look to your customers.

Once you assign collection(s)  to your items, you'd plug something like the following into your theme.liquid code:


          {% if collection.handle != null %}
          {% assign selector = collection.handle | split: '-' %}
          {% assign bizunit = selector[0] %}
          {% elsif collection.handle == null %}
          {% for collection in product.collections %}
          {% assign selector = collection.handle | split: '-' %}
          {% assign bizunit = selector[0] %}
          {% else %}
          {% assign selector = page.url | remove: '/pages/' | split: '-' %}
          {% assign bizunit = selector[0] %}
          {% endfor %}
          {% endif %}
          
          {% assign bizunitlogo = bizunit | append: "head.png" %}
          {% if template == 'cart' %}
          <img src="{{ 'blank.png' | asset_url  }}"/>
          {% else %}
                <a href="/pages/{{ bizunit }}-nosotros"/><img src="{{ bizunitlogo | asset_url }}"/></a>      
          {% endif %}

if you're wondering why the '-' are used...that is done to create artificial sub-categories... one more thing Shopify wont effin give us!! 

So you can have your hot sauce shop "AySalsa" as a collection and you'd have "AySalsa-Hot" and "AySalsa-Mild" as sub-collections, that way, the little snippet I showcase above will split the string at the '-' and query your files for the first part of the string and display the correct logo/image/contactinfo or whatever you use as your header.

I've tested it and it works in all scenarios, with A LOT of caveats:

-You have to keep your items/collections well organized.

-You have to upload a different logo/header image for each store (collection) and use the same syntaxis for the name so that the lookup works.

-You wont be able to display your custom domain on Google AdWords, because they force us advertisers to type in the URL where the customer will land, not the fancy custom one ***touching on Doug Steimel's point regarding the CNAME.

Furthemore, if you want a custom, relevant menu for each store (most will), you´ll have to create such menu in the Navigation section and give that menu a name that includes the name of the business unit (easy peasy), then, you're gonna have to plug something like this in your theme.liquid file:

 <ul> 
        {% for link in linklists[bizunit]links %}
        <li>
        <a href="{{ link.url }}">{{ link.title }}</a>
        </li>
        {% endfor %}

</ul>

--here we see the reason for assigning the "bizunit"; so that we can just plug that variable anywhere -even within CSS code, and change the store's behavior by wildcarding one parameter.

MY CONCLUSION: I'm personally hours away from jumping ship after 3 years because Shopify has lost all humility and wont listen to us users. It is a heck of a hassle to do all this, just to end up loosing months and tens of thousand$$$$ of buit up "generic keyword" SEO link juice. 

 

0 Likes
Tourist
4 0 1

Now you can add products to specific channels (POS, buy button, online) so i see absolutely no IT limits why multiple storefronts couldnt be managed from a single inventory by tweaking the channel selector.

Onboarding and start price at shopify is easy, but once you're in... 

 

1 Like
Tourist
5 0 3

Stijn,

No offense, but your perspective on this is very narrow.

From what you wrote, one is supposed to create a new webpage or modify an existing one each time a new category or product is created?

Shopify is NOT FIT for multile stores. End of story.

0 Likes
New Member
3 0 0

Hey guys, this is exactly what I am trying to do. I know html but the script and above stuff appears a slight bit too complicated for me.

I am trying to make the individual collections have different domain names and when you navigate around within that collection it mainatains it's original domain that was used to naviagte there verses reverting back to the primary domain.

Thanks for all the help in advance.

0 Likes
New Member
3 0 0

This is what I'm looking for

We've managed to do it.

For example we sell air purifiers at www.airpurifiershop.hk (points to collection A) and sell water filters atwww.waterfiltershop.hk (points to collection B)

But in the end its the same shopify store we use. Just different domains, and some customization.

but this doesnt make sense to me...

<script>
  var lo0 = window.location.hostname  
  var lo1 = lo0.substring(4,10);
  var lomain;
  
        if (lo1 =='greenb' ) {lomain = "gbx";}      
        else if (lo1 == 'airpur' ) {lomain = "aps";} 
        else if (lo1 == 'dehumi' ) {lomain = "dhs";} 
 </script> 

Then per item we wanted changed, use some other script. For example to change the logo on our page:

 <script>
  if ( lomain == 'gbx') {document.getElementById("logochange").src = "{{ 'logo-gbx.png' | asset_url }}" ;}
  else if ( lomain == 'aps') {document.getElementById("logochange").src = "{{ 'logo-aps.png' | asset_url }}" ;}
  else if ( lomain == 'dhs') {document.getElementById("logochange").src = "{{ 'logo-dhs.png' | asset_url }}" ;}
  </script>
0 Likes
New Member
9 0 0

Morgan,

pointing a domain name to a collection work for what I'm trying to do but I can't find a tutorial on how to do it. Could you perhaps link me to one?

0 Likes
Shopify Partner
5 0 1

I'm keen to run multiple domains / stores but across different geographic locations which means I need different units of currency...

Would be nice if their was a solution rather than moving :(

Australia's No. 1 Barware Store
1 Like
New Member
1 0 0

What if you were looking to use sub-domains to do this instead of different urls?  

I sell handmade accessories, both fashion and planner.  I sell them as "collections" to my main shop QtsyLife (which is my kids accessories). For example; I have I'm Late by QtsyLife. That is my planner line. Unbirthday Boutique by QtsyLife is my more adult line of accessories. (Not up yet still hosted on another platform.)  

I'd like to have my planner accessories at imlate.qtsylife.com right now it's at qtsylife.com/pages/im-late.  I already have the collections seperated with navigation and different collections landing pages. I'd like to simply change the header and footer colors and add the text I'm Late to the header where it says QtsyLife on that page of collections and those product pages, keeping everything else the same. I'd even be ok with just changing the header color. I've been searching for a tutorial on how to do this but I'm not finding it.

Any help would be gretly apprechiated. Even a link to walk throughs. I'm very new to this and am learning as I go from reading things like this. 

Thank you. 

 

0 Likes
New Member
1 0 0

Hi All,

My name is Andy and I work with a boutique custom integrator in Canada called Jasper Studios.  It seems that your issues could be resolved by integrating a PIM (Product Information Management) system behind your Shopify site.  This would allow you to master products once, and then customize what is published out to the various storefronts or channels.  So if you had multiple stores selling different products, different variants, mulitple pricing tiers, different currencies, different warehouses, etc., you could use one central repository for all of your products, storing all of the variants in one place and have them publish out to whichever "channels" you would like, with whatever infomration you would like that channel to see.  

We've specialized in integrating these for a few years now and they work extremely well for multi-channel brands/wholesalers/retailers.  Check out www.jasperstudios.com for more info. 

0 Likes
New Member
3 0 0

I want to pretty much the same. I want to be able to run multi currency for cover different geographically regions but want to set the sales price per region.

 

such as UK £99, Euro 119, USA $129 and then take payments at the sales price and I'll have any currency conversation changes when i "cash" to money into my home currency.

I dont want a currency covertor that changes 3 times a day and displays my UK £99 product at $124.32 as this looks really stupid.

 

Currently i need to run 3 identical shops each with their own product file (all identical except the sales price) 

 

any thoughts or help please?

0 Likes