Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Un-link product listing image


Guest

Recommended Posts

Posted

Hi everyone,

 

My first official Oscommerce forum post! woo!

 

I'm having a little bit of trouble in unlinking the image in the product listing section. As you know, at the moment, by clicking on the image in the listing pages it takes you through to the product's description. I want to disable this.

 

I believe this is the bit of code i need to change in "catalog/includes/modules/product_listing.php", but my PHP skills are very rusty.

 

 case 'PRODUCT_LIST_IMAGE':
		$lc_align = 'center';
		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']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
		} else {
		  $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';
		}
		break;

 

 

ANY HELP at all would be grateful! Thank you :)

Posted

Remove bolded area

 

 <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> 

 

 

Hi everyone,

 

My first official Oscommerce forum post! woo!

 

I'm having a little bit of trouble in unlinking the image in the product listing section. As you know, at the moment, by clicking on the image in the listing pages it takes you through to the product's description. I want to disable this.

 

I believe this is the bit of code i need to change in "catalog/includes/modules/product_listing.php", but my PHP skills are very rusty.

 

 case 'PRODUCT_LIST_IMAGE':
		$lc_align = 'center';
		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']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
		} else {
		  $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';
		}
		break;

ANY HELP at all would be grateful! Thank you :)

Posted

Thank you SO MUCH :)

 

I didn't anticipate such a quick reply! Works a treat. Cheers :thumbsup:

Posted

No problem anytime!

 

Thank you SO MUCH :)

 

I didn't anticipate such a quick reply! Works a treat. Cheers :thumbsup:

Archived

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

×
×
  • Create New...