Hello Team,
We are trying the ‘Add to Cart’ function on an internal product page but its not working. The button gets added but when we click on it, it takes us to the checkout page but the product doesn’t get added to the cart. The code is given below:
<button onclick="location.href ='checkout/cart/add?product=getId() ?>