Thursday, 15 January 2015

php - Sales email with promotional code - insert promotional code title -


I thought how to remove the promotional code in the sales order email, here: < P> They want the title of the promotion to be included in the email (but not the code). How can I go about this? Is any variable i mytotals.phtml ?

Based on the available information, it appears that you can draw the title of the promotion instead of the code Want to In mytotals.phtml , you can get information with:

  if ($ _code == "discount") {$ code_used = trim (str_replace (array ("Discount (", ")"), array (""), $ this- & escape; HTML ($ _ total- & gt; milable ())); $ Coupon = Dana :: MillModel ('Celsule / coupon'); $ Coupon-> load ($ code_used, 'code'); $ Rule = Dana :: MillModel ('Sales / Rules') - & gt; Load ($ coupon-> getRuleId ()); $ Rule_name = $ rule- & gt; GetName (); }   

You can echo out $ rule_name where you want the title to show the shopping cart rule .

No comments:

Post a Comment