Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing Product Link in Category Display and others

Removing Product Link in Category Display and others

Views: 550

Results 1 to 3 of 3
18 Oct 2012, 5:25 AM
#1
kharmachanic avatar

kharmachanic

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Removing Product Link in Category Display and others

Aloha..
Newb here.. First time Zcarter (actually second time - first time didn't work out so well)

I need to remove the linked Product name on a category display. I need to keep the product name just remove the link to the product page. (I do not want to display or link to any individual product pages - just the rows list in the categories NOTE: I do not want the links in the cart or at checkout either so if there is a way to globally remove them that would be great)

The cart I am working on is GroceriesAhead

Note: I have installed the newport_eco template, but I do not see where that would having an effect on my difficulties in finding what I need.
I also installed easy populate.

I thought I had found it in the includes/modules/product_listing.php file:

includes/modules/product_listing.php
	line 193:        $lc_text = '<h3 class="itemTitle"><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 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&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>';

Changed to :
line 193: $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>';

That did not seem to work
any ideas where to find this change?

as a side note:
This customer is requesting all elements of pricing, images, anything other than the product name and quantity order box. All those removed in the products, e-mails, cart, etc..
No standard shipping, just a single "drop off fee"
and total color and background changes with a mobile friendly version.
I am working slowly through all the other elements, (hoping I can get all the references gone - particularly Shipping and Price).

Thanks for any assistance you can offer
Kharmachanic out..

18 Oct 2012, 10:09 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Removing Product Link in Category Display and others

You can look at the files I edited in this for the pricing part: http://www.zen-cart.com/downloads.php?do=file&id=1210

I have removed the link from product listing to product info, but can't remember how at the moment. I'll be back.

18 Oct 2012, 2:04 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Removing Product Link in Category Display and others

Check if you also have that file in your templates and overrides directory ... you do not want to edit the original, but rather:
includes/modules/newport_eco/product_listing.php

it sounds like you changed the original file, but are using a templates and overrides file and edited the wrong one ...

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!