Should be achieved by preference not using the plugin and observer

  • 1
    Did you just copied the ticket description that was assigned to you :P Jun 29, 2022 at 15:23

1 Answer 1


You can create a preference for Magento\Checkout\Controller\Cart\Add::execute

Or you can create a plugin for


Check if the current request is add in plugin ode

And update the qty as per your logic

Not the answer you're looking for? Browse other questions tagged or ask your own question.