Forums / Templates, Stylesheets, Page Layout / More info removal not working

More info removal not working

Locked

Views: 904

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Sep 2007, 4:28 PM
#1
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

More info removal not working

I have tried to remove the more info...

that comes on the product listing page as per previous threads that I have found....but it does not seem to work!

I have tried to modify the tpl_product_listing file, but that justleaves me with an error message on my site.

Can anyone please help me - I just want the price and product name below the image and nothing else...how can I do this?!?! I would also like to tighten up the space between the product name and price....where can I do this as well?

You can see a sample page at:

http://www.expressionsphotostore.net/index.php?main_page=index&cPath=8

Thank you so much!!!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

13 Sep 2007, 6:13 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: More info removal not working

To remove the add to cart/more info button, edit /includes/modules/your_template/product_listing.php. Find this section around line 185:```php
$the_button = $lc_button;
$products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
$lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

      break;
    case 'PRODUCT_LIST_QUANTITY':

and comment out one line like thisphp
$the_button = $lc_button;
$products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
// $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
$lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

      break;
    case 'PRODUCT_LIST_QUANTITY':
13 Sep 2007, 8:08 PM
#3
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: More info removal not working

:clap:

I cannot thank you enough!!!!!!!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!