If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Pre-158 Coupon Description Not Accepting HTML

Pre-158 Coupon Description Not Accepting HTML

Started by dbltoe on 4 May 2023, 10:46 PM · Views: 533

Results 1 to 1 of 1
4 May 2023, 10:46 PM
#1
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #1 by dbltoe

Fixed in 1.5.8 but, if you are trying to get HTML into your Coupon Description in a version prior to 1.5.8, you will need to make a small change to /includes/modules/pages/discount_coupon/header.php.

In 1.5.7d, line 33

if (zen_not_null($coupon_desc->fields['coupon_description'])) $text_coupon_help .= sprintf(TEXT_COUPON_HELP_DESC, zen_output_string_protected($coupon_desc->fields['coupon_description']));

should be changed to

if (zen_not_null($coupon_desc->fields['coupon_description'])) $text_coupon_help .= sprintf(TEXT_COUPON_HELP_DESC, $coupon_desc->fields['coupon_description']);

This may vary in other versions so be sure to check the line numbers and code.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com