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
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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.

  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. Exclude category from also purchased?
    By swamyg1 in forum Basic Configuration
    Replies: 35
    Last Post: 29 Nov 2012, 06:09 AM
  2. How to remove price information from "also purchased" box?
    By wilsonshen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 May 2011, 06:45 AM
  3. Remove price from also purchased display
    By ggbarnum in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Oct 2010, 01:30 AM
  4. Disable Specific Product from Customers who bought/selected also purchased...
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Dec 2009, 07:18 PM
  5. How do i change the product in Also Purchased
    By fbenza in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jul 2009, 01:45 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR