If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Remove "Add Selected Items to Cart" button at top of page & Disabling links

Remove "Add Selected Items to Cart" button at top of page & Disabling links

Locked

Started by ahuacatlan on 27 Jul 2007, 9:36 PM · Views: 3,047

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Jul 2007, 9:36 PM
#1
ahuacatlan avatar

ahuacatlan

New Zenner

Join Date:
Jul 2007
Posts:
27
Plugin Contributions:
0

Remove "Add Selected Items to Cart" button at top of page & Disabling links

Hi,
I would like to remove the Add Selected Items to Cart button that appears at the top of the product listings.

There are two of these same buttons, and I'd like to remove only the top one, keeping the bottom one there.

Also,
I'd like to disable the link that takes the customer to the product description, because that is not necessary. I want them only to see the page that is linked to below:

Here is the page:
http://livephytoplankton.com/zen/index.php?main_page=index&cPath=4

Is there a way to disable that link?

27 Jul 2007, 11:42 PM
#2
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Remove "Add Selected Items to Cart" button at top of page & Disabling links

ahuacatlan:

Hi,
I would like to remove the Add Selected Items to Cart button that appears at the top of the product listings.

There are two of these same buttons, and I'd like to remove only the top one, keeping the bottom one there.

Also,
I'd like to disable the link that takes the customer to the product description, because that is not necessary. I want them only to see the page that is linked to below:

Here is the page:
http://livephytoplankton.com/zen/index.php?main_page=index&cPath=4

Is there a way to disable that link?

First one is done via the admin.. Its done in "Configuration", "Product Listing", "Display Multiple Products Qty Box Status and Set Button Location"

To do the other, you can edit includes/modules/YOUR_TEMPLATE/product_listing.php and remove the links. So for example, the product name is turned into a link. Find approx line 139:

$lc_text = '<h3 class="itemTitle"><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']) . '">' . $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>';

and change it to:

$lc_text = '<h3 class="itemTitle">' . $listing->fields['products_name'] . '</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>';

Now this will happen for EVERY product on your site, not just the ones on that page.

28 Jul 2007, 3:04 AM
#3
ahuacatlan avatar

ahuacatlan

New Zenner

Join Date:
Jul 2007
Posts:
27
Plugin Contributions:
0

Re: Remove "Add Selected Items to Cart" button at top of page & Disabling links

great! thanks a lot!