Anyone having a Magento online shop created does not get the option to set a small-order surcharge out of the box, unfortunately. This means: a surcharge on the shopping cart price if it falls below a certain value.
However, discounts can be configured for shopping carts based on individual conditions. Since a small-order surcharge is equivalent to a negative discount, it can be implemented by entering a negative amount as part of a price rule. To do this, however, negative discount amounts must be allowed in several places (Magento development based on version 1.7.0.2):
Change 1: File \app\code\local\Mage\Adminhtml\Block\Promo\Quote\Edit\Tab\Actions.php:
$fieldset->addField('discount_amount', 'text', array(
'name' => 'discount_amount',
'required' => true,
'class' => 'validate-number',
'label' => Mage::helper('salesrule')->__('Discount Amount'),
));
Change 2: File \app\code\local\Mage\Rule\Model\Abstract.php:
Comment out:
if ($this->hasDiscountAmount()) {
if ((int)$this->getDiscountAmount() < 0) {
Mage::throwException(Mage::helper('rule')->__('Invalid discount amount.'));
}}
Change 3: File \app\code\local\Mage\SalesRule\Model\Validator.php:
Remove ">0":
if ($cartRules[$rule->getId()]) {
Change 4: File \app\code\local\Mage\SalesRule\Model\Quote\Discount.php:
Rename:
$title = Mage::helper('sales')->__('Surcharge/Discount');
Done!
