Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default 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!
    Danielle

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default 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!
    Danielle

  4. #4
    Join Date
    Jun 2010
    Location
    USA
    Posts
    174
    Plugin Contributions
    0

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

    whats your solution may I ask for other users.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Quote Originally Posted by Danielle View Post
    It was in the includes/templates/custom/templates folder. I found a solution though, thanks!
    Glad you found a fix for your custom code.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. HTML Code showing issues still
    By UnSub in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Jan 2011, 05:24 PM
  2. html editor showing as code on site
    By Wilfred in forum Basic Configuration
    Replies: 3
    Last Post: 19 Oct 2010, 07:50 PM
  3. banners showing as html code on site
    By thetig in forum General Questions
    Replies: 1
    Last Post: 14 Oct 2010, 03:06 PM
  4. Image Not Showing up on Main Page - HTML Code Showing
    By acreativepage in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Oct 2010, 11:44 AM
  5. HTML Code showing up in Product Listing
    By wudchuk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Oct 2009, 05:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg