Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I am creating a Coupon, Deals and Discounts website where I can upload deals from other retailers using an affiliate link from those retailers. I am already aware of the Spreadr App for Amazon products that replaces the Add to Cart button with a "View on Amazon" button. I need guidance on how to add/edit code to do this for products not leading to Amazon and for the most efficient way to go about this.
I had a couple ideas on how this could be implemented:
1. Using Product Page Templates and Product Metafields using the URL content type. The idea is to create a product page template for Target (just an example), and the Add to Cart button is replaced with a "View on Target". There would be a field added to the theme editor to edit the button text so it could be changed to something like "View on Walmart" or "View on Walgreens". The button's content would be connected to the URL product metafield. So I would just need to enter the Target affiliate link (as an example) into the URL product metafield and then assign the product to the product page template for Target. Customers would see the "View on Target" button and will be directed to the Target's website (using the affiliate link) when they click on the button.
2. Similar idea as the one above but the Button text would instead be connected to the product metafield using the single-line text content type.
This is just what I could come up with. I am open to any ideas that could be better than this. I know this might be a tall order but I appreciate any assistance! Thank you in advance!
Attached below is a picture to visually describe the end goal I am trying to accomplish.
Solved! Go to the solution
This is an accepted solution.
This can be achive with help of metafield and product template modification with some conditional logic,
But seems you have mentioned only 1 case schenerio may be there are more.
We can discuss it in detail on whatsapp to finalize the workflow.
This is an accepted solution.
This can be achive with help of metafield and product template modification with some conditional logic,
But seems you have mentioned only 1 case schenerio may be there are more.
We can discuss it in detail on whatsapp to finalize the workflow.
Yes, that was what I was thinking but just can’t implement it myself.
What is your whatsapp?
hey im new to this and im tryning to make some fast busniess money
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024