how do I make the buy button for each product direct me somewhere else

MrMuawa
Visitor
2 0 0

Hi,

I want to create a "store" where I won't actually sell anything, rather just direct people to Aliexpress or whatever and use affiliate links to cover site costs.

I want to have the buy buttons on product pages each direct to some different URL I will input based on the product, is something like that possible without extensive customization?

thanks in advance

 

Replies 2 (2)

NegativeSpace
Shopify Partner
18 3 6

The solution to this is definitely custom but I wouldn't say its extensive. This is definitely not a default behavior of any theme I've ever used. 

I think it would be pretty easy to do this with metafields and a little custom code. I would suggest using this free app to add a metafield like this

NegativeSpace_0-1608603960227.png

and then replace the buy button with something line this

 

<a href="{{ product.metafields.global.url }}">Buy Button</a>

 

Hope this helps, let me know if you have any questions

MrMuawa
Visitor
2 0 0

Thanks! I just found something called outlink which changes the as to cart button to a link like that, I then just removed the regular buy button