Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    Quote Originally Posted by kobra View Post
    I am not sure if the above is meant as a single response??
    If it is please note that the product description function can only contain html coding - - NOT php code

    Sorry, I meant that I couldn't get the clean html working for some reason. I searched the forum for zen clean html and found a thread. I copied and pasted the recommendation into my product listing php page but saw no result? Nothing seemed to change, I tried it again while using something similar from another thread and got a blank page.

  2. #12
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: HTML is product description OF product listing.. other questions!

    gjh42 explains this in a little more detail here:

    http://www.zen-cart.com/forum/showthread.php?t=38464
    20 years a Zencart User

  3. #13
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    Quote Originally Posted by schoolboy View Post
    gjh42 explains this in a little more detail here:

    http://www.zen-cart.com/forum/showthread.php?t=38464

    Hey, I attempted to replace any zen_clean_html with the /*zen_clean_html*/ in my /includes/modules/product_listing.php file, still no results. What am I doing wrong?

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

    Default Re: HTML is product description OF product listing.. other questions!

    We can't tell without seeing exactly what you have done, and where.

  5. #15
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    Code:
              $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? 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>' ;
            } else {
              $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? 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>';
            }
    Code:
        //  $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',
        //  'text' => zen_trunc_string(/*zen_clean_html*/(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION));
        //}
    replaced anything with "zen_clean_html" with "/*zen_clean_html*/" like mentioned in that thread

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

    Default Re: HTML is product description OF product listing.. other questions!

    If that's all you have done, and it is in the active copy of product_listing.php, it will work.
    You say you edited /includes/modules/product_listing.php; is there a file at /includes/modules/your_template/product_listing.php? That is where you should save any edited copy of the file, not in the original location. If there is a copy there, it will override the original one.

    Are you sure the edit got saved when you uploaded the file? Download the file, or look at it in place, and make sure that the edit is there. Permissions could prevent an edit from saving.
    Last edited by gjh42; 11 Mar 2009 at 06:21 PM.

  7. #17
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    You know, that was it! I had completely forgotten I had made a folder for my own template a few months ago with my own product_listing.php in it. Thanks very much.

    And one last question and I'll stop bothering you!

    What file do I use to edit out some things on the product listing pages?

    For example: I added the product model number to the top of each image. I find the code as
    Code:
    <div class="productListing-data">JAA002</div>
    I tried making a css option to have it a bit bigger and bold but it didn't seem to work, or I don't know exactly how to go about it.

    I'd like it to resemble the catalog/model number oh http://justaaudial.net/releases.html

    Also, I was able to hide the itemTitle in css, but when I tried to float the "Buy Now" button it floated it all the way to left of the page so that it wasn't justified with the paragraph. Maybe it would be easier to delete the cost/buy now section from the php and just add it into my item description in html? (I suppose then it would double up when someone clicked on the product and saw the product description page! )

  8. #18
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    any ideas for this last one, or is it just not possible?

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

    Default Re: HTML is product description OF product listing.. other questions!

    Should be possible, but will take more time than I have right now to work out. Be back later.

  10. #20
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    can anyone help on this. i think i may give up

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. HTML not working in product listing description
    By nealt900 in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 17 Nov 2012, 08:19 PM
  2. v139h Have Category description and product listing next to each other
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2012, 03:55 PM
  3. Replies: 2
    Last Post: 12 Aug 2008, 03:38 PM
  4. 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
  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