Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    17
    Plugin Contributions
    0

    Products_Description not showing up correctly

    After searching the forums, I haven't found any help with my problem.

    The situation
    I am updating products description for products using SQL and strings containing "\n" (I tried "\r\n" too) to properly format the contents...

    e.g. UPDATE products_description SET products_description = 'Description : RING 18K\r\nColor : AMETHYST,RUBY\r\nGold Wt : 9.23g\r\nSemi Cts : 17.01cts\r\nCS 1 Pcs : 40\r\nCS 1 Type : RUBY\r\nCS 1 Cts : 0.66cts\r\nTotal WD Pcs : 129\r\nTotal WD Cts : 0.65cts\r\n' WHERE products_id = '7' LIMIT 1;

    The output I expect is this
    Description : RING 18K
    Color : AMETHYST,RUBY
    Gold Wt : 9.23g
    Semi Cts : 17.01cts
    CS 1 Pcs : 40
    CS 1 Type : RUBY
    CS 1 Cts : 0.66cts
    Total WD Pcs : 129
    Total WD Cts : 0.65cts

    and that is the way it looks in MySQL (v3.23) and in the product edit page in Admin

    However in the product display page it shows up like this:
    Description : RING 18K Color : AMETHYST,RUBY Gold Wt : 9.23g Semi Cts : 17.01cts CS 1 Pcs : 40 CS 1 Type : RUBY CS 1 Cts : 0.66cts Total WD Pcs : 129 Total WD Cts : 0.65cts

    completely ignoring my formatting!

    What am i doing wrong...

    You can check my page @
    http://www.thunder-creation.com/zc_i...&products_id=7
    Last edited by Vixay; 11 May 2006 at 08:51 AM. Reason: Fix Typo in Title
    --
    "Drunk on the Nectar of Life" - me

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Products_Description not showing up correctly

    Hi,

    I found that putting <br> after each line worked for me but I wasn't using SQL to edit my product descriptions. I put the info in using the Zen Cart admin Edit Product page so it may not be the same in SQL but worth a try maybe.

    BTW, your page took an age to load (on 2nd attempt) using Firefox 1.5.0.3.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Products_Description not showing up correctly

    You can edit product descriptions in any way that works, but they are displayed as HTML output, not as db info. You need to use HTML tags to give whatever formatting you want.

  4. #4
    Join Date
    Apr 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Products_Description not showing up correctly

    Quote Originally Posted by gjh42
    You can edit product descriptions in any way that works, but they are displayed as HTML output, not as db info. You need to use HTML tags to give whatever formatting you want.
    Thanx a lot... that worked...

    i am now using a table to format it correctly!

    Sorry for th late reply... didn't look at this tab in firefor for weeks!.. .hehe :)
    --
    "Drunk on the Nectar of Life" - me

 

 

Similar Threads

  1. EZ page not showing correctly
    By robbin21973 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Jun 2014, 10:57 PM
  2. v151 AdditionalImagesHover1.5 not showing images correctly
    By DML73 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Oct 2013, 06:18 PM
  3. Header height not showing correctly
    By bturner425 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 10 Feb 2011, 06:37 PM
  4. SSL not showing correctly on checkout
    By Rob905 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 9 Jul 2009, 04:38 PM
  5. Background Pic not showing correctly in IE
    By aussiewench in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jan 2007, 05:18 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR