Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $title = trim($title);
- $title = $address->getDiscountDescription();
- $description = $address->getDiscountDescriptionArray(); //array();
- foreach($this->_cards as $_id => $value){
- $description[$_id] = 'Gift Cards '.= $value['card_code'];
- }
- $description[$quote->getRuleId()] = $quote->getCouponCode();
- $codes = implode(",", $this->_cardCodes);
- if(strlen($codes) && !strpos($title, 'Cards')){
- $title .= Mage::helper('giftcards')->__(' Gift Cards %s', $codes);
- }
- $title = trim($title);
- $address->setDiscountDescription($title);
- $address->setDiscountDescriptionArray($description);
Add Comment
Please, Sign In to add comment