Shopify themes, liquid, logos, and UX
Hi,
Each product which is sold as a number of different variants, for example paperback, hardback, audiobook. I also want to add a variant which is for Kindle, these are currently only available on Amazon.
Need the user to be able to press kindle as a variant and be directed to amzons page for that product.
Is this possible, if not is there another way around this?
Many thanks
Nat
Hello Nat,
Yes it's possible using a variant metafield.
Through this option admin can declare external URL for each variant if the variant has.
This option can be enabled from the settings but the functionality can be done from the code where you need a developer
Or if you are good with code, try to fetch the variant metafield and check whether a variant has an external url value or not. A/to this logic redirect the variant to the target URL.
Thanks
Can you be a bit more specific about the steps required to achieve this? I have the same question as the OP, where I want certain books to be fulfilled by my store and others (ebook, audiobook) to redirect to Amazon or Audible when the customer clicks the ebook/audiobook variant. Thanks!
@heydrew Please let me know where you need explanation excluding code.
Because code part vary a/to the theme you are using.
I also want to know how to exactly do this. My shop is selling books which are available as digital download as well as physical copy through Amazon. I'm currently using the standard Dawn version 15 template. Tried adding custom metafield for Amazon, with single line text. But then adding the link in the form on the "physical copy" page didn't work (link won't show). Any help would be much appreciated!
So, something to achieve the following outcome pictured below. I'm just using the basic "Dawn" theme for the moment.
Yes it's possible using a variant metafield.
Through this option admin can declare external URL for each variant if the variant has.
This option can be enabled from the settings but the functionality can be done from the code where you need a developer
I'm not understanding how to "declare external URL for each variant." Where in the settings do I do this? What specific things to I add or enable?
Apologies if I'm not using the proper terms. I'm coming over from Woocommerce and learning Shopify on the fly. This functionality is a core reason I'm trying to switch.
1) Enable/Add metafield for your variants.
2) Define metafield for those which have values by editing each.
3) Edit your code and make the logic so the variant which has values will redirect to external defined url in the new tab and those which don't have works as it is.
If you need help in code part please drop an email to discuss.
Email can found in below signature.
Thanks
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025