Liquid, JavaScript, themes, sales channels
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
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
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
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
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024