Forums / Bug Reports / Categories Picture Bug 1.3.5

Categories Picture Bug 1.3.5

Locked

Views: 1,589

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
18 Sep 2006, 1:47 AM
#1
kenaniah avatar

kenaniah

Zen Follower

Join Date:
Jun 2005
Posts:
111
Plugin Contributions:
0

Categories Picture Bug 1.3.5

If a category has sub categories then the picture for the main category will show in full size instead of the size specified for subcategories as it was behaving before the upgrade.

18 Sep 2006, 3:22 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Categories Picture Bug 1.3.5

For now ... edit the file:
/includes/templates/template_default/tpl_index_categories.php

and copy to your templates and overrides directory ...

Edit line 52 and change to read:

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>

Now, define somewhere the settings for:
define('SUBCATEGORY_IMAGE_TOP_WIDTH', 150);
define('SUBCATEGORY_IMAGE_TOP_HEIGHT, 85);

These will be added in the next release and you will be able to define them in the image settings ...

Experiment with this ...

You can get a nice effect where the Top Cat is slightly larger than the subcats or keep them the same size ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!