Skip to main content
fixed grammer
Source Link
Msquare
  • 9.3k
  • 7
  • 27
  • 68

The \Magento\Checkout\Controller\Cart\Add::execute() method has support for the qty request param. Try adding a new hidden input named qty and valuea value of 2 in the add-to-cart form template file.

Maybe there's a more elegant way of doing this, but I don't know about it yet.

The \Magento\Checkout\Controller\Cart\Add::execute() method has support for the qty request param. Try adding a new hidden input named qty and value of 2 in the add-to-cart form template file.

Maybe there's a more elegant way of doing this, but I don't know about it yet.

The \Magento\Checkout\Controller\Cart\Add::execute() method has support for the qty request param. Try adding a new hidden input named qty and a value of 2 in the add-to-cart form template file.

Maybe there's a more elegant way of doing this, but I don't know about it yet.

Source Link
nevvermind
  • 1.7k
  • 1
  • 16
  • 19

The \Magento\Checkout\Controller\Cart\Add::execute() method has support for the qty request param. Try adding a new hidden input named qty and value of 2 in the add-to-cart form template file.

Maybe there's a more elegant way of doing this, but I don't know about it yet.