I am working on a project where customers can buy a product or send it as a gift. In the product page I need two buttons, one for buy and the other one for gift. Clicking one of the two buttons, it will add the product to the cart, then in the cart I have to distinguish which one is a buy product and which one is a gift product.
The problem is that I am not able to catch which one of the two buttons is clicked and how to keep this value (and where) and show it in the cart.
Any idea?
thanks