Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2013
    Location
    Sydney
    Posts
    25
    Plugin Contributions
    0

    Default Can I enable product html in listing pages?

    This is discussed in some length in this topic -

    http://www.zen-cart.com/showthread.p...mn_layout_grid

    but this refers to 1.3.8 and from what I can see the product_listing.php code has changed because there is now only one instance of zen_clean_html in the file not two as is stated.

    I cannot get this to work and it just shows the text straight after it


    http://veganmealsdelivered.com.au/demo/index.php?main_page=index&cPath=63


    Any ideas what I am missing?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: enabling html in listing pages

    My stock copy of that file (v. 1.5.1) has two instances of zen_clean_html, on lines 96 and 185.

  3. #3
    Join Date
    Jun 2013
    Location
    Sydney
    Posts
    25
    Plugin Contributions
    0

    Default Re: enabling html in listing pages

    I see the 2nd on line 185 but that is commented out already. The original post had this and you can see where zen_clean_html is commented out twice -

    PHP Code:
           case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            if (isset(
    $_GET['manufacturers_id'])) {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_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>' ;
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . '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
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: enabling html in listing pages

    You're right. I commented out the first instance then added a bold tag to part of the top product's description here: http://www.stevesh.com/demo/index.ph...ndex&cPath=1_4 and it seemed to work.

    It's not clear from your post exactly what you're expecting. You've added <span> tags with their own ids, but haven't given those ids any styling in the stylesheet.

  5. #5
    Join Date
    Jun 2013
    Location
    Sydney
    Posts
    25
    Plugin Contributions
    0

    Default Re: enabling html in listing pages

    I'm trying to move blocks of text under the picture ie
    [pic]
    Ingredient.etc etc etc a
    Nutrition etc etc

    The 2nd post here
    http://www.zen-cart.com/showthread.p...-Category-Page

    better explains what I am trying to and I should have added that in the first post. Once I can move the text I will think about the formatting.

  6. #6
    Join Date
    Jun 2013
    Location
    Sydney
    Posts
    25
    Plugin Contributions
    0

    Default Re: enabling html in listing pages

    I sorted this. Thanks to 'stevesh' I checked whether html code was active and it was so I was barking up the wrong tree. Turns out I hadn't edited the stylesheet properly.

 

 

Similar Threads

  1. enable right column only on product listing pages
    By warroyo90 in forum General Questions
    Replies: 1
    Last Post: 30 May 2012, 05:21 AM
  2. changing html in listing pages
    By tallberg in forum General Questions
    Replies: 1
    Last Post: 30 Jul 2010, 08:08 PM
  3. How to enable category listing for selected pages only?
    By ak6000 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 11 Jun 2010, 09:05 PM
  4. enable html textarea in product description
    By chandroo007 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 1 Jun 2010, 12:49 PM
  5. How to enable the FREE SHIPPING icon next to product listing?
    By kenix in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Aug 2008, 06:28 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