Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories as Images


DarthVader

Recommended Posts

Hi All,

 

I want to amend my test website on oscommerce 2.2MS1 to display images to the centre as categories rather than the categories text in the left hand column. Each image would hyperlink to its own sub-categories which would also be images before returning to normal test when a product is reached. I have checked the forums without luck. Anyone any ideas?

 

many thanks..

Link to comment
Share on other sites

To make sure I understand you,

 

try adding this,

 

?cPath=0

 

to the end of your home URL, for example,

 

www.yourhomeurl.com/catalog/default.php?cPath=0

 

If what shows up is what you want,

 

then go into catalog/includes/application_top.php

 

find

 

// calculate category path

if (isset($HTTP_GET_VARS['cPath'])) {

$cPath = $HTTP_GET_VARS['cPath'];

} elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {

$cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);

} else {

$cPath = '';

}

 

and change that last $cPath=''; to $cPath='0';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...