Zen Cart Logo
Forums / General Questions / HTML code showing up on orders page for custom products

HTML code showing up on orders page for custom products

Views: 912

Results 1 to 5 of 5
16 Jun 2011, 2:54 PM
#1
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

HTML code showing up on orders page for custom products

I just upgraded a site that has a custom page that allows for customers to "build" a customized product and then add it to their cart. It all works great after the upgrade with one exception. When the page is processed, this bit of code is used for the product description:

$product_desc = "<br>Box Type: ".$box_type."<br>Pre-assemble: ".$assem_sel."<br>Finish: ".$finish_sel."<br>".$nfs_desc."<br>Include Bracket: ".$ib_sel."<br>Bottom thickness: ".$bottom_thick_sel."<br>Dimensions - Height: ".$height." ".$h_f."<br>Width: ".$width." ".$w_f."<br>Depth: ".$depth." ".$d_f;

In the old site (1.3.8a), that text was output correctly everywhere. In the new site (1.3.9h), it is formatted correctly in the shopping cart, but on the order detail page, invoice, and packing slip, the <br> tags show up.

I did try changing them to <br />, but that just made the <br /> show up in the shopping cart as well, so it actually made things worse.

I realize I am asking about custom code that is not standard to Zen-Cart, but I am hoping someone will know what has changed in Zen-Cart to cause this not to display correctly anymore.

Any thoughts?

Thanks!

16 Jun 2011, 4:15 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: HTML code showing up on orders page for custom products

Where exactly does that code exist in your site's files/database?

16 Jun 2011, 4:18 PM
#3
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: HTML code showing up on orders page for custom products

It was in the includes/templates/custom/templates folder. I found a solution though, thanks!

16 Jun 2011, 4:30 PM
#4
david52 avatar

david52

Zen Follower

Join Date:
Jun 2010
Location:
USA
Posts:
176
Plugin Contributions:
0

Re: HTML code showing up on orders page for custom products

whats your solution may I ask for other users.

16 Jun 2011, 4:31 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: HTML code showing up on orders page for custom products

Danielle:

It was in the includes/templates/custom/templates folder. I found a solution though, thanks!
Glad you found a fix for your custom code.