Forums / Templates, Stylesheets, Page Layout / how to get details button for product details

how to get details button for product details

Views: 742

Results 1 to 2 of 2
17 Aug 2011, 4:41 AM
#1
tparvaiz avatar

tparvaiz

Zen Follower

Join Date:
Jun 2011
Posts:
150
Plugin Contributions:
0

how to get details button for product details

Hi,

when I added attributes to the product the product list page (not the product detail page) shows the text "... more info"

without the attributes, it had a button labeled "Detailed"...

may I know how to have a button back even with the attributes...

thanks

17 Aug 2011, 2:18 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how to get details button for product details

You would need to customize using your templates and overrides the file:
/includes/modules/product_listing.php

and change how that is built around line 113:

        if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
          $lc_button = '<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 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!