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 Based on the available information, it appears that you can draw the title of the promotion instead of the code Want to In You can echo out mytotals.phtml ?
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 (); }
$ rule_name where you want the title to show the
shopping cart rule .
No comments:
Post a Comment