Whats the best way to set a minimum subtotal for customer group? Is this even possible in native Magento?
Magento – Minimum order subtotal for customer group
customer-groupmagento-1.8orders
customer-groupmagento-1.8orders
Whats the best way to set a minimum subtotal for customer group? Is this even possible in native Magento?
Best Answer
it is possible but you need some customization.
Magento check the
min Order amount
fromvalidateMinimumAmount
function of checkout address object means Sales quote addess object (classMage_Sales_Model_Quote_Address
). You can rewrite the class and override the methodYou need fetch quote Customer group and put minimum amount according to customer group.
and logic should be like that
in
$CustomGroupMinprice=array(1=>100,2=>500,3=>200)
,1,2,3
meancustomer group id
and100,300,200 its respective minimum amount