Guest User

Untitled

a guest
Nov 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $title = trim($title);
  2.  
  3. $title = $address->getDiscountDescription();
  4.  
  5. $description = $address->getDiscountDescriptionArray(); //array();
  6. foreach($this->_cards as $_id => $value){
  7. $description[$_id] = 'Gift Cards '.= $value['card_code'];
  8. }
  9.  
  10. $description[$quote->getRuleId()] = $quote->getCouponCode();
  11.  
  12. $codes = implode(",", $this->_cardCodes);
  13. if(strlen($codes) && !strpos($title, 'Cards')){
  14. $title .= Mage::helper('giftcards')->__(' Gift Cards %s', $codes);
  15. }
  16.  
  17. $title = trim($title);
  18.  
  19. $address->setDiscountDescription($title);
  20. $address->setDiscountDescriptionArray($description);
Add Comment
Please, Sign In to add comment