Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default HTML in product_listing.php v1.5x

    I have read old threads that tell me to remove the two 'zen_clean_html' instances from just before the description. However, in v1.5, there only seems to be one instance of it, and when I remove it, the entire description disappears.

    I am trying to add links to MSDS and Tech Data sheets. I have the tech data sheet as a link in the description, but I would also like to know how to bring in the website URL field as well, because that is where I have put my MSDS links.

    Thanks!

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

    Default Re: HTML in product_listing.php v1.5x

    There are two instances in includes/modules/product_listing.php in 1.5.1., lines 96 and 187. Those are the ones you want to comment out.

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

    Default Re: HTML in product_listing.php v1.5x

    Why in the product listing page and not in the product info page??

  4. #4
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: HTML in product_listing.php v1.5x

    Yes, I comment both of those out, and then only the title shows up, and the entire description disappears. Forgive me for leaving this piece of info out.

    Why in the product listing? Because my client isn't actually using the shopping cart part of the store, just the storefront, so it would be nice to have links to the MSDS and Tech sheets available without having to click on the product.

  5. #5
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: HTML in product_listing.php v1.5x

    Also, the second instance of it is in a block of code that was commented out by default.

  6. #6
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: HTML in product_listing.php v1.5x

    product_listing.zip

    This is my file with the areas commented out. It is saved in STORE/includes/modules/TEMPLATE_NAME/product_listing.php

  7. #7
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: HTML in product_listing.php v1.5x

    Before with red circle denoting link
    Click image for larger version. 

Name:	before.png 
Views:	68 
Size:	12.7 KB 
ID:	12197


    After I comment out the single clean code.
    Click image for larger version. 

Name:	after.png 
Views:	88 
Size:	10.2 KB 
ID:	12198

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

    Default Re: HTML in product_listing.php v1.5x

    Also check Admin - Configuration - Product Listing - Display Product Description. You may need to make it larger.

  9. #9
    Join Date
    Nov 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: HTML in product_listing.php v1.5x

    Thanks for the suggestion, but it only disappears when I change the code to try to get the links to show up. The length of the description didn't change, and it is not very long. I did notice that the next product jumped to the right, indicating that cutting out that bit of code left a tag open somewhere in the html. I dunno

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

    Default Re: HTML in product_listing.php v1.5x

    What is your product description length setting for product listing? If it is not longer than any description you have, and you enable HTML, you will probably get a cut-off tag and some error. This error may or may not cause significant problems... but eliminate that cause first.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. php files called when accessing product_listing.php page
    By Tonyy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Dec 2011, 12:46 AM
  2. product_listing.php
    By niccol in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jun 2009, 11:12 PM
  3. product_listing.php customization
    By pivey in forum General Questions
    Replies: 0
    Last Post: 28 May 2007, 01:46 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