free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





captcha

How to limit one product per order in Magento 2 for customers?

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.