Can I have two different storefronts on the same Shopify shop which are accessed from different domains? Basically I want to have the same backend system and same theme just a different store front for my secondary domain. Anyone know if it’s possible and how to do it?
I’ve been trying to figure out the same thing. It isn’t that I want two separate shops and just looking to bend the system to my will to save money on two plans. I want different landing pages for different domains so that I can have a landing page for my books, and a landing page for my coaching business, and one over-arching catch-all. I want the whole thing accessible by any entrance point a user comes from, and to be a seamless experience for them. I want SEO to be proper as well. I don’t want to do javascript or html redirects which hinder SEO ratings, neither do I want to do a domain DNS redirect, because that essentially is the same thing but at the DNS level.
I’ve been looking at customizing my theme to do this within the theme’s LIQUID code. There’s a way to figure out in code what domain name was used to get to the site, and then you can display different things based on that. My approach preference would have been to just say something like, if domain B, then switch to page XYZ and show that without refreshing or doing http redirects. Then since I couldn’t find that, I think I’ll have to go with ChatGPT’s suggestion of: if domain B, then instead of showing the main content for the root page, render a custom “section” which will essentially be what that other page is going to use. I’m not ready to drop any code in here yet, but if you want that, I can work it out soon. I want to see it working well on my own site before I put my seal of approval on it. If you can’t wait, you can ask ChatGPT for similar code based on what I’ve described.
Just FYI, I didn’t end up doing anything very elaborate and gave up on automatically displaying the one page as the landing page. Instead I used Liquid code in the the main theme liquid file to determine if it’s that domain name, and if so, add a nice big section at the top to say to go to that page for those things, and linked to it there too. Seems simple enough, but not quite as elegant or functional as I’d like. I really wish that Shopify would add this capability into the baked in features. Seems like many shops would want to have this for certain promotions etc. Why not? Sheesh