Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Plain text is adding HTML tags

    Correct Zen Cart behaviour in 1.3.9 is to add br tags to the product description where a production description has no other html.

    This was added to deal with a specific issue where some users were neither using an HTML editor, nor inserting their own HTML. So their product descriptions were all screwed up.

    You want it to act the opposite way, in order to do something which it's not designed to do. That's fine. This is open source and you can change it to work however you want, and we've told you the change to make it work as you want.

    For good measure, as an alternative, we've also told you how to achieve what you want to achieve the Zen Cart way.

    So I'm confused as to what more you want.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #12
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Plain text is adding HTML tags

    And I'm unsure why you're importing css via a product description.
    If you need custom CSS on a per-page or even a per-product basis, there is built-in functionality to handle that for you, making it unnecessary to stuff it into product descriptions.
    See the /docs/ folder of your Zen Cart files.
    .

    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. #13
    Join Date
    Nov 2009
    Location
    In beautyful New York
    Posts
    160
    Plugin Contributions
    2

    Default Re: Plain text is adding HTML tags

    Correct
    but i have about 70 pages/products that must have a different css
    do i have to create 70 or so css.pages?

    and where do i find the
    Code:
    $products_description = (!preg_match('/(<br|<p|<div|<dd|<li|<span)/i', $product_info->fields['products_description']) ? nl2br($product_info->fields['products_description']) : $product_info->fields['products_description']);
    to tern it off

    I appreciate your time, all of you

  4. #14
    Join Date
    Nov 2009
    Location
    In beautyful New York
    Posts
    160
    Plugin Contributions
    2

    Default Re: Plain text is adding HTML tags

    as for the css I'm going to do is this:
    create a dump category and place all products in it, so i can design a special CSS for that cat (ie. c_12_23.css)
    than I'll link it all to the right categories

    as for PLAIN text, I'm going to tern off this added feature; if any one can tell me where the code resides, hence the name plain text :)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 4 Mar 2011, 03:54 AM
  2. HTML Newsletters arriving as plain text
    By dapottster in forum General Questions
    Replies: 12
    Last Post: 25 Jan 2011, 04:34 AM
  3. HTML Editor preview changes to Plain Text with HTML code
    By Morph99 in forum Basic Configuration
    Replies: 5
    Last Post: 3 Jan 2011, 10:12 PM
  4. Plain text/HTML add text or...
    By Monica79 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Mar 2009, 06:32 AM
  5. Newsletter arrives as plain text, no HTML
    By OfficeRat in forum General Questions
    Replies: 2
    Last Post: 12 Jan 2007, 06:13 PM

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