Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display categories as images instead of text?


mimages

Recommended Posts

Can I display categories as images instead of text? I don't want to change the default menu on the left side. Rather, I want to have the main page display the image of each category in the center of the page, instead of the default "What's New Here?" message. Then, when the user clicks this image, I can have them taken to the list of products in that category.

 

Also, I need the "TOP" link to go back to this page instead of the main page. No plans to use our own index.php, just the shopping cart.

 

Thanks.

Link to comment
Share on other sites

Hmm...try changing (around line 16 of index.php)

  $category_depth = 'top';

to

  $category_depth = 'nested';

Also, as per this bug report, around line 80, you need to swap the parameters to strpos, so it looks like this:

    if (isset($cPath) && strpos($cPath, '_')) {

Hth,

Matt

Link to comment
Share on other sites

I can't find the code

 

if (isset($cPath) && strpos($cPath, '_')) {

 

anywhere in the site.

 

Also, Do you know how I can have a table of images (say, 3 columns, any number of rows, and have it display the category image for each category? I could figure this out in ASP, but I'm just now trying to migrate to PHP. I am trying to not get frustrated and go back to ASP.

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...