Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Howcan i remove a link


Guest

Recommended Posts

Posted

I would like to remove the product links in the product listing page (in product images and titles)

 

how can i do that?

Posted

It's not clear what you want to accomplish.

Perhaps you need to be a little more specific...

Posted

there is a page called product_listing.php

 

in this page there are the product titles, the product images, the prices and the "buy now" button if we wish.

 

The product images and the product titles are linked to the appropriate full products page.

 

I want to remove these links. I want a mere product listing without any link to any page (apart from the "buy now" button)

 

can you help me now please?

Posted

sorry to bother but i think that someone could help me...

Posted

You found the right file. For example, there is code:

          case 'PRODUCT_LIST_NAME':
           $lc_align = '';
           if (isset($HTTP_GET_VARS['manufacturers_id'])) {
             $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
           } else {
             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
           }
           break;

 

You would remove the <a> tag that creates the link.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...