Personalized checkout and custom promotions with Shopify Scripts
Hey all, I've been working on a site with external links to amazon instead of sending a product to the cart page.
My problem is, I can't figure out a way to use an external link to be unique for each of the product's variants.
I've been using this article: Adding Metafields to Product Variants for Dawn Theme. (alanryan.dev) to create product variant's single text description successfully but hadn't had any luck with URL type variants.
Hi @erant ,
Since Shopify is an e-commerce platform, it provides only buynow option for product.
If you want to redirect your user to external link 🔗.
You have to edit main-product.liquid as you did for short description already.
Solution:
Create URL metafield at variant level check if it's not blank and create anchor tag having metafield url in else put quantity and buy now button code.
Same approach i did for my client too
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024