Is there a way to add some code to an image that allow a customer to click on the image and add a product to their cart? To have the image operate as a “Buy Now” button? I am using this for a landing page. I’d rather do this than direct a customer to the product page - I’d like them to be able to more quickly add it to cart.
Any advice is greatly appreciated.
This is the page I’d like to add the image coding to: https://claribelskincare.com/pages/antioxidant-skin-serum
Yes, you can surely add a product to cart on clicking on the button.
As per the landing page on which image click do you want to add a product to cart?
Let me know so I can provide the proper code so you can use it.
Thanks
Hi Anthony - I can link the top image or each individual image to this product: https://claribelskincare.com/products/hyaluronic-multi-peptide-serum
Thank you in advance for your help.
Hi @claribelskincar
I hope you have some knowledge of code.
Below is the code:
1: add data-variant=“123456” to the image and replace the 123456 with the actual varient for eg: it will look like
2: Add javascript to add product to cart
Hope this helps.
Let me know if any questions
Thanks
Hi Anthony, I do have coding experience but you lost me on where to add “data variant” info and where to add the javascript. Sorry. Could you perhaps point it out and I’ll find it? Thanks so much.