Magento – Set Minimum Order Amount for Payment Method in Frontend

admin-panelconfigurationevent-observerfrontendpayment-methods

I need to set the minimum order amount for a purchase order payment type only in the frontend for a particular store.

I used system/configuration/payment method/custom payment ->set minimum order to 100 for that store in the admin panel.

But this filter gets applied even when an order is placed from the admin side

I need the minimum order amount filtered only when an order is placed from the admin side.

Any thoughts will be really appreciated.

Thanks

Best Answer

I created this module to enable/disable a certain method of payment when a condition applies (in this case, to enable Money order only in the admin). You can fork it and modify it as you want to match the criteria you need. Key is in the Observer.php file where the logic you need to modify resides.