Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Replace "Add to Cart" button with "View on Target, Walmart, Amazon, etc."

Solved

Replace "Add to Cart" button with "View on Target, Walmart, Amazon, etc."

Sensei_Ryan
Shopify Partner
30 0 15

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.

Screenshot 2022-10-24 221203.png

Accepted Solution (1)

gr_trading
Shopify Partner
1948 145 204

This is an accepted solution.

@Sensei_Ryan ,

 

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.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

View solution in original post

Replies 3 (3)

gr_trading
Shopify Partner
1948 145 204

This is an accepted solution.

@Sensei_Ryan ,

 

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.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
Sensei_Ryan
Shopify Partner
30 0 15

Yes, that was what I was thinking but just can’t implement it myself.

 

What is your whatsapp?

dylanlopez575
Visitor
1 0 0

hey im new to this and im tryning to make some fast busniess money