My client want to set Maximum purchase order amount in magento2? and they need options like Minimum purchase order amount in admin.
can anyone please help..
magento2sales-order
My client want to set Maximum purchase order amount in magento2? and they need options like Minimum purchase order amount in admin.
can anyone please help..
Best Answer
If you look at the Magento admin configuration area, you will see that Magento offers the opposite feature called Minimum Order Amount. You can find it under System > Configuration > Sales > Sales > Minimum Order Amount.
And this functionalty is not more diffrent from our Maximum Order Amount, The main difference is that with Maximum Allowed Order Amount you are not suppose to add anything new to the cart itself if it exceeds the maximum limit.
For our Functionality we are going to use
event/observer
withsales_quote_save_before
we only needed to add the following to our extension's config.xml file:
And the following logic into our Observer.php model class file:
This method allow us to use maximum order amount.
Or you can even download a inchoo extension For this Functionalty from this link
Hope this helps.