Forums / Templates, Stylesheets, Page Layout / remove product name from also purchased

remove product name from also purchased

Locked

Started by etoile03 on 21 Jul 2006, 3:36 PM · Views: 1,411

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
21 Jul 2006, 3:36 PM
#1
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

remove product name from also purchased

i'm trying to remove the product name from the also purchased feature. however, i would still like the image displayed. can anyone help? i've been looking through the tpl_modules_also_purchased_products.php and tpl_product_info_display.php files and haven't had any luck. anyone know where i can go to change this?

24 Jul 2006, 7:50 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: remove product name from also purchased

COPY /includes/modules/also_purchased_products.php
TO /includes/modules/YOURTEMPLATE/also_purchased_products.php

Then EDIT /includes/modules/YOURTEMPLATE/also_purchased_products.php
line 36 looks like this:```php
'text' => '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a>');

At the end of that line, you see this:```php
'">' . $also_purchased_products->fields['products_name'] . '</a>');
```replace this last bit with this:```php
'">' . '</a>');

That's the simplest way to do it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Jul 2006, 4:39 PM
#3
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Re: remove product name from also purchased

Thanks! Worked Great.