Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Location
    Melbourne, Australia
    Posts
    6
    Plugin Contributions
    0

    Default Product Listing and Product Description formating

    I am hoping someone can help me with this one.

    I have TinyMCE installed in my zencart v1.5.0 and I have it selected as the text editor for my Categories/Products.

    I am using AV product grid at the moment but the following problem was also there before I changed to this layout.

    With the general product listing my product description does not react to the formatting applied to it but when you click on the image/product to get the full description the formatting is applied. The screen shots below should give you the idea. Basically in the listing on the left there is no space between the word 'genuine' and 'card'
    Click image for larger version. 

Name:	product-listing.jpg 
Views:	63 
Size:	38.8 KB 
ID:	11122 Click image for larger version. 

Name:	product-detail.jpg 
Views:	81 
Size:	31.6 KB 
ID:	11121

    I have set the 'Display Product Description' , under Configuration, to 2000 to allow for the markups but it hasn't seemed to change anything

    Any ideas?

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

    Default Re: Product Listing and Product Description formating

    The stock product listing disables HTML in the description, so your formatting will be ignored. The mod you are using apparently also does this. There is a simple coding fix to allow HTML in the listing description; search the forum for zen_clean_html. You will need to adapt it to the code in your mod file.

  3. #3
    Join Date
    May 2012
    Location
    Melbourne, Australia
    Posts
    6
    Plugin Contributions
    0

    Default Re: Product Listing and Product Description formating

    Thanks for that.
    I saw that post and tried copying and pasting the code that was there but it made no difference.

    This is what mine currently has. Not really sure where to go from here or what to change.
    Any advice would be appreciated

    PHP Code:
                   case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
            break; 

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

    Default Re: Product Listing and Product Description formating

    In the part of that line which has
    PHP Code:
    zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing 
    comment out the zen_clean_html like /*zen_clean_html*/
    PHP Code:
    zen_trunc_string(/*zen_clean_html*/(stripslashes(zen_get_products_description($listing 

 

 

Similar Threads

  1. Formating not working on product listing page
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jun 2010, 08:08 PM
  2. Description different between product listing and product pages
    By KiwiBrian in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 5 Aug 2008, 11:52 PM
  3. Product Description not formating correctly
    By Lonepig in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 May 2008, 07:49 PM
  4. Product Description Formating
    By spjutulf in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jan 2008, 05:30 PM
  5. Formating using Data from Excel for Product Description (and maybe more)
    By Outlawlb in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 23 Feb 2007, 06:34 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