Forum Forum Magento Theme SNS Kalolia – Magento Theme Add to Cart Not Working

  • Author
  • #5387


    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() ?>

You must be logged in to reply to this topic. Click here to login or register