Have separate version of store available

Hello,
I currently have two versions of my store, one that has our main product at full price and another that has the main product at a discounted price. I’d like to have the version with the full priced product as the published theme, but have some sort of link that can direct people to the version with discounted price when clicked. I can use the link for the preview of the store, but since it expires after two days I was wondering if there was somewhere that I could obtain a permanent link for it. Just to clarify, the discounted price version of the store would only be available by clicking on said link.

Hello @Francis_Yang ,

Welcome to Shopify community!

You can create a custom link or button on your published theme that directs customers to the version of your store with the discounted price.

Here’s how to do it:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Click on the Actions button for your published theme, and select Edit code.

  3. In the left-hand menu, click on the Templates folder, then select theme.liquid or clarify where you want to add the link so I can give you the exact template name.

  4. Locate the section of the code and paste the following code just after :

<a href="[https://your-discounted-store-url.com](https://your-discounted-store-url.com")">Click here for discounted price</a>

  1. Replace the “https://your-discounted-store-url.com” with the actual URL of your discounted store.

  2. Save the changes to your theme.

This code will add a link to the top of your published theme that says “Click here for discounted price” and directs customers to your discounted store.

Let me know if need any help.

@Francis_Yang

Please let me know if I got it right.

You want to redirect to discounted version website for few products only choosen by you.

If I’m right, you will have to update your theme which will let you enter the discounted product url.

If url exists then user will be redirected to discounted version url.

Hello,
I think you may have misunderstood my question; I don’t need to display the link to the discounted version of the store on my standard store, I’m just wondering if I can generate a URL for my discounted store in the first place. For reference, the discounted version of the store isn’t it’s own Shopify Store but rather an unpublished theme in my theme library.

Hi @Francis_Yang ,

Linking to unpublish theme is not possible.

If you could elaborate you actual logic why you want to do this.

We could help to suggest work around or different way to meet your requirement.