w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Magento Maximum Allowed Order Amount per customer or customer group

You could follow something like this. In fact, you need to filter by customer group, so could get the customer object with:

$customer =
Mage::getModel('customer/customer')->load($quote->getCustomerId());

And then filter by Customer Group:

if ($customer->getGroupId() == 'INSERT ID HERE' &&
(float)$quote->getGrandTotal() >
(float)$this->_helper->getSingleOrderTopAmount())




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.