public function applyRule(ISC_QUOTE $quote) { if($quote->getBaseSubTotal() >= $this->amount) { if (!$quote->getHasFreeShipping()) { $this->banners[] = getLang($this->getName().'DiscountMessage'); $quote->setHasFreeShipping(true); } return true; } return false; }
public function applyRule(ISC_QUOTE $quote) { foreach($quote->getItems() as $item) { if($this->prodids == $item->getProductId() && $item->getQuantity() >= $this->amount) { if (!$quote->getHasFreeShipping()) { $this->banners[] = getLang($this->getName().'DiscountMessage'); $quote->setHasFreeShipping(true); } return true; } } return false; }