Forums / General Questions / Removing Product description from front page only?

Removing Product description from front page only?

Locked

Views: 2,204

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
1 Oct 2009, 10:35 AM
#1
tilenk avatar

tilenk

New Zenner

Join Date:
Sep 2009
Posts:
37
Plugin Contributions:
0

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 Oct 2009, 9:19 AM
#2
tilenk avatar

tilenk

New Zenner

Join Date:
Sep 2009
Posts:
37
Plugin Contributions:
0

Re: Removing Product description from front page only?

so nobody has the same issues? :D

2 Oct 2009, 9:36 AM
#3
igor56 avatar

igor56

New Zenner

Join Date:
Apr 2009
Posts:
29
Plugin Contributions:
0

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.

2 Oct 2009, 12:39 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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 Oct 2009, 5:29 AM
#5
tilenk avatar

tilenk

New Zenner

Join Date:
Sep 2009
Posts:
37
Plugin Contributions:
0

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).

:)

5 Oct 2009, 6:54 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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;}

5 Oct 2009, 8:39 AM
#7
tilenk avatar

tilenk

New Zenner

Join Date:
Sep 2009
Posts:
37
Plugin Contributions:
0

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... :)

5 Oct 2009, 4:12 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
?>

<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 $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.'"'; ?>> ```
5 Oct 2009, 4:18 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.