Zen Cart Logo
Forums / Bug Reports / HTML code showing in Discount Coupon

HTML code showing in Discount Coupon

Views: 523

Results 1 to 5 of 5
17 Jun 2019, 18:13
#1
rozdesignz avatar

rozdesignz

Zencart Website Owner

Join Date:
Aug 2011
Location:
Tampa Bay, Florida USA
Posts:
17
Plugin Contributions:
0

HTML code showing in Discount Coupon

v1.5.6b my current version of Zen Cart. The error happened with the previous update to my cart.
When a customer typed is the coupon code and hits the button, they see HTML coding on the page.

Here's the Coupon page: https://worshipwarriors.net/index.php?main_page=discount_coupon

Coupon code: 5grace

any ideas? thank you

17 Jun 2019, 19:03
#2
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Re: HTML code showing in Discount Coupon

rozdesignz:

v1.5.6b my current version of Zen Cart. The error happened with the previous update to my cart.
When a customer typed is the coupon code and hits the button, they see HTML coding on the page.

Here's the Coupon page: https://worshipwarriors.net/index.php?main_page=discount_coupon

Coupon code: 5grace

any ideas? thank you

It appears that there is a double quote character ( " ) 2 spaces in front of your coupon description. Try going into edit that in the admin area and if you are using a graphical editor try switching it to view SOURCE. If you see the double quote in front of the <h3> tag, remove it and then save. That will probably resolve your issue.

IF you don't see a way to switch to SOURCE view in your editor, turn off the graphical editor long enough to see and fix this issue.

17 Jun 2019, 22:17
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: HTML code showing in Discount Coupon

To allow HTML to render as you entered it in your Admin, you'll need to edit /includes/modules/pages/discount_coupon/header_php.php on line 33 and remove:

zen_output_string_protected

18 Jun 2019, 18:52
#4
rozdesignz avatar

rozdesignz

Zencart Website Owner

Join Date:
Aug 2011
Location:
Tampa Bay, Florida USA
Posts:
17
Plugin Contributions:
0

Re: HTML code showing in Discount Coupon

Hi lynbor, I did try both of these and neither worked. Thank you for the input. :smile:

18 Jun 2019, 18:56
#5
rozdesignz avatar

rozdesignz

Zencart Website Owner

Join Date:
Aug 2011
Location:
Tampa Bay, Florida USA
Posts:
17
Plugin Contributions:
0

Re: HTML code showing in Discount Coupon

DrByte, Yes! it worked. Thank you so much. Was hoping I didn't have to give up my HTML coding for coupons on the website.
Appreciate the help. :D