Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Links in product_listing.php


tc001

Recommended Posts

Hi!

 

I need to remove the product_info.php link from the products listed within the table, the products that appear in the search results page and manufactures page.

 

When customers search for a certain model number or all products from a certain manufacture, when they click on the link I want them to be taken to the full product page not the product_info.php page.

 

I know the coding I have to alter is within the "product_listing.php" file and I tried to modify it, I got it to work within the table listed on the main product page but it doesn't work for the search result & manufacture products.

 

The following code I was modifying is:

 

case 'PRODUCT_LIST_NAME':
           $lc_align = '';
		if ($listing['products_price'] < 0.01 ) {

           if (isset($HTTP_GET_VARS['manufacturers_id'])) {
             $lc_text =  $listing['products_name'];
           } else {
             $lc_text =  $listing['products_name'];
           }
		} else {
		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;

 

 

 

Can anyone please help me? :blink:

 

-Jane

Link to comment
Share on other sites

  • 3 months later...

Archived

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

×
×
  • Create New...