Product Variant which is an link to external website (amazon)

Product Variant which is an link to external website (amazon)

ldwdesign
Visitor
1 0 0

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 

 

Replies 6 (6)

Guleria
Shopify Partner
4146 809 1164

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

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
heydrew
Excursionist
11 0 2

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!

Guleria
Shopify Partner
4146 809 1164

@heydrew   Please let me know where you need explanation excluding code.
Because code part vary a/to the theme you are using.

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
WhimsyLou
Visitor
1 0 1

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!

heydrew
Excursionist
11 0 2

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.
 
Screenshot 2024-10-17 at 10.38.58 AM.png

Guleria
Shopify Partner
4146 809 1164

1) Enable/Add metafield for your variants.

variant-metafield-external.png

 

2) Define metafield for those which have values by editing each.
 variant-has-metafield.png

 

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

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder