I posted to the osCommerce contributions forum, got a good reply, but it has
some data I'm confused by. I tried posting a reply to question, but haven't
heard back yet, and hope someone here can help. Here's a "transcript" of the
postings, if you can help, I really appreciate it:
Me: 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.
==============
Reply by iiinetworks, Posted: Oct 24 2003, 01:56 PM :
Hmm...try changing (around line 16 of index.php)
CODE
$category_depth = 'top';
to
CODE
$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:
CODE
if (isset($cPath) && strpos($cPath, '_')) {
Hth,
Matt
==============
My Replay Posted: Oct 25 2003, 08:03 PM :
I can't find the code
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.
>> Stay informed about: osCommerce Contribuion problem