Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    122
    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?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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 Code:
          '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_WIDTHSMALL_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 Code:
    '">' $also_purchased_products->fields['products_name'] . '</a>'); 
    replace this last bit with this:
    PHP Code:
    '">' '</a>'); 
    That's the simplest way to do it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Jun 2006
    Posts
    122
    Plugin Contributions
    0

    Default Re: remove product name from also purchased

    Thanks! Worked Great.

 

 

Similar Threads

  1. Installed? Now create your own template
    By kuroi in forum Basic Configuration
    Replies: 21
    Last Post: 23 Sep 2007, 04:15 AM
  2. Replies: 3
    Last Post: 18 Aug 2006, 09:40 PM
  3. remove 'product 1/2' NOT product count!
    By TJR in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 May 2006, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •