Web Analytics

Fill the form & Get Installation Support

    As a Magento 2 store owner, in the event of a limited number of stocks or while trying a new selling strategy, you may want to limit the number of items to be purchased per order to market it among the more massive audience.

    Magento 2 doesn’t provide you this option; this functionality has to be configured programmatically.

    If you want to implement Only One Product Per Order in Magento 2 functionality for the customer, then follow the below steps to create a custom module.

    Step 1: Create event.xml

    Step 2: Create a Productadd.php Observer in Observer Folder.


    After creating the above module, please run the upgrade, decompile and static:content:deploy command to implement this module.

    Hope you find this guide useful and may it helps you to limit the product quantity per user. If you are facing problem during this process, then feel free to comment.

    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Author Image

      Hire A. Patel

      Get a Free Quote

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.