Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2009
    Posts
    37
    Plugin Contributions
    0

    red flag Removing Product description from front page only?

    Hello, eveyone.

    I'm using the latest version of ZenCart, with a cusom template, and I have a question regarding removing the products description:

    Is it possible to REMOVE the products description only from the front side? So that when people arriving on the front site, they can see the Product's title and picture, but no further description?


    I uploaded the picture for the better understanding of my question here, hope it will help.

    Picture --> http://www.shrani.si/f/3k/rs/3sGpp790/dtsi.png


    Regards n' thanks,


    Tilen

  2. #2
    Join Date
    Sep 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Removing Product description from front page only?

    so nobody has the same issues?

  3. #3
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Removing Product description from front page only?

    Is perhaps this what you are looking for:

    Admin control panel/Configuration/Product Listing:

    Display Product Description

    If you insert the value 0 instead of the default (150?), this should remove the product description from the front page I believe.

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

    Default Re: Removing Product description from front page only?

    Do you want the product description to show on every page except the home page? Add to your stylesheet

    #indexHomeBody .listingDescription {display: none;}

    This will work for a standard Zen Cart installation; if it does not work for you, post a link to your site so we can test it live.

  5. #5
    Join Date
    Sep 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Removing Product description from front page only?

    Thanks for response, guys :)


    The solution from mr. gjh42 works, but now instead of a description, there's three dots under every title on the front site ... Check it HERE (that's the website I'm talking about).

    :)

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

    Default Re: Removing Product description from front page only?

    That's why a link to see a site live is so much better than a screenshot - we can see what class tags and stylesheet rules apply to your case. Aside from not being the product listing, you have a Template Monster template which uses different names for a lot of elements. Try

    #indexHomeBody .centerBoxContentsNew .text {display: none;}

  7. #7
    Join Date
    Sep 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Removing Product description from front page only?

    Hello.

    Yes, it's a template from TemplateMonster.com ... and the second tag didn't change anything, i tried with putting it to stylesheet.css and stylesheet_main.css but nothing happened.

    actually, now even the first tag you suggested (#indexHomeBody .listingDescription {display: none;} doesn't work anymore.. it keeps showing the full product description on front page :) :) ..something strange is going on with my script, I think... :)

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

    Default Re: Removing Product description from front page only?

    I assumed your template used a recent version of Zen Cart, but the version you have doesn't include the code to distinguish the home page from other index pages. TM must have used an older version of /includes/templates/your_template/common/tpl_main_page.php. This works when added to any stylesheet

    .centerBoxContentsNew .text {display: none;}

    but will also affect other pages.

    You should be able to add the "home page" code to your template copy of the file. Find this line near the top:
    PHP Code:
    ?>
    <body id="<?php echo $body_id 'Body'?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'?>>
    and add
    $body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
    above it to get
    PHP Code:
      $body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
    ?>
    <body id="<?php echo $body_id 'Body'?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'?>>

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

    Default Re: Removing Product description from front page only?

    By the way, did TM say that this template was compatible with Zen Cart v1.3.8? If they did, you should contact them and demand that they fix the file, as it is a standard part of v1.3.8 that they have disabled.

 

 

Similar Threads

  1. Removing description from category page
    By etorf9751 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 26 Apr 2010, 03:18 PM
  2. Removing Category Description from page 2
    By NYFurniture in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Apr 2009, 11:25 PM
  3. Removing extra product info from description?
    By stlnyc in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Mar 2009, 04:28 PM
  4. Product Description on front page
    By hondauser85 in forum Setting Up Categories, Products, Attributes
    Replies: 18
    Last Post: 24 Jul 2008, 03:57 PM
  5. removing description from catagory page
    By azwli in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 11 Mar 2007, 07:47 AM

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