Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default HTML not working in product listing description

    Ok, So I've been crawling the forum for the past few hours about zen_clean_html and am still having issues with getting an html table to work properly in the description.

    here is the code from my inlcludes/modules/theme/product_listing.php:

    PHP Code:
    $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>'
    the only other time "zen_clean_html" is used is in a section commented out near the bottom at line 186 with a comment "add description and match alternating colors".

    Below are screen shots of what I'm seeing.

    What the product looks like in the category list:
    Click image for larger version. 

Name:	product category listing screenshot.jpg 
Views:	147 
Size:	28.4 KB 
ID:	11462
    What the product looks like on the product page:
    Click image for larger version. 

Name:	product page screenshot.jpg 
Views:	123 
Size:	55.1 KB 
ID:	11463
    What the table looks like(and should look like) in the product preview on the admin page:
    Click image for larger version. 

Name:	product preview screenshot.jpg 
Views:	132 
Size:	19.4 KB 
ID:	11464

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    So can you elaborate on what the issue is??

    Product listing appears to have the table as does the product info page???
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    The html is not showing up correctly on the product page. It has a boarder for the left side of the table, but not the right (this is the case whether I comment out zen_clean_html or not). Also, the table displayed in the category list seems to have been stretched vertically.

    The html table in the category list is killed completely when I don't comment out zen_clean_html, so I know it's at least partially working.

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

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    A link to the site itself would help.

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

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    The zen_clean_html fix is working exactly right - that is not your issue at all. It's impossible to say for sure without seeing the site live, but I expect there is some styling that applies to the product description and overrides default HTML table styling (which, by the way, is but t-ugly and should be customized from default). The preview has no stylesheet rules affecting it and will show the table raw.
    Last edited by gjh42; 17 Nov 2012 at 04:59 PM.

  6. #6
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    Ok. That is what I need to hear. The default html table isn't my end result, but I wanted to get to that point so I know nothing else is interfering with the table, then build it from there.

    I'd post a live example but the site isn't live yet. I could give you the IP to where the site is, but you would have to make a change in your host file.

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

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    A "change in my host file"?? What kind of change, in what file? I'll look at it if I can. I haven't done a lot of styling of HTML tables, but I know some aspects of them can't be affected by CSS but need to be set in the <table> tags.

  8. #8
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    Wow, thanks for your help. I didn't expect anyone to bother with it that much. Ok, there is an old version of this site currently hosted on the live server that will be brought up if you simply type it in your URL. to get to the test server's site, you need to add this line to your host file:

    Code:
    174.121.95.149 bargainbookswholesale.com www.bargainbookswholesale.com
    then close your browser and reopen it and go to www.bargainbookswholesale.com. That will bring you to the site I am working on.

    Here is a link to a category page to show what the tables are looking like there: http://www.bargainbookswholesale.com...index&cPath=48

    Here is a link showing a product page: http://www.bargainbookswholesale.com...ducts_id=13372

  9. #9
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    here's a quick link showing how to edit your host file to get to a non-live site:

    http://www.howtogeek.com/howto/27350...ur-hosts-file/

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

    Default Re: HTML not working in product listing description (zen_clean_html fix not working)

    I don't know what "host file" you are talking about. Where would I find it, and what would it be called?


    OK, looking at it...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 21 Mar 2013, 12:10 PM
  2. HTML formatting not working in Product Description
    By kbradley in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Dec 2010, 02:52 AM
  3. Product description in product more info in html format but not in product listing?
    By this side up in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Dec 2006, 06:25 PM
  4. Product Description Html Area Not Working
    By RnBChills in forum General Questions
    Replies: 1
    Last Post: 15 Nov 2006, 03:30 AM
  5. html links in product description (on listing page)
    By Lovere in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Jun 2006, 05:32 PM

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