app\code\local\Mage\SalesRule\Model\Validator.php
public function process
if($this->getCouponCode() == ‘codename‘ && $this->_rulesItemTotals[$rule->getId()][‘base_items_price‘] >= 150){ if($this->_rulesItemTotals[$rule->getId()][‘base_items_price‘] >= 200){ $rule->setDiscountAmount(15); }else{ $rule->setDiscountAmount(10); } }
时间: 2024-10-12 18:26:45