I have a product that comes with a free gift - I want to automatically add it to the cart when someone makes a purchase to keep track of the inventory SKU.
How can I do this without an app? I'm not much of a coder but I understand it so I can add any code myself
Hello!You could use the Ajax Cart API to automatically add that product into the cart, either on cart page load or in a function binded to the checkout button.
Any hints for the coding on how to do that? I have no idea where I would put that into the code.