Where do I change style width? I want 4 images to show up on a row. Tried changing number using Configuration/Index Listing, but all images still are set to 33% using style.
Thanks for the help.
Bill
Where do I change style width? I want 4 images to show up on a row. Tried changing number using Configuration/Index Listing, but all images still are set to 33% using style.
Thanks for the help.
Bill
What template are you using? What version of Zen Cart?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
Set-up is for v1.3.7
Working on updating an old template to an upgraded new template using old files. New stylesheet is based on default tpl provided with v1.3.7.
Regards, Bill
\includes\modules\category_row.php
line 39.
it may be easier than that. I' m on the wrong machine to check right now, but the items per row can be set in admin. Just remember there is an items per row for just about everything, so you would need to change it for products/featured products/new products/etc
First you adjust the categories per row, in the admin. Go to "Configuration", "maximum values", then for "Categories To List Per Row"
However, I prefer having some padding between the categories, so I adjust the 33% like this:
On line 25 and 27 of the same file, I do this:
$col_width = floor(100/$num_categories) - 2;
$col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW) - 2;
That would cause the width to be 31%, of course you could do whatever number you'd like.
There are other places where you may need to do the same thing, if you want the products to also be spaced like this, like:
modules/product_listing.php
modules/new_products.php
modules/also_purchased_products.php
modules/featured_products.php
Last edited by jettrue; 20 Apr 2007 at 05:23 PM.
Thanks a bunch. Solutions were very helpful.
;-)
Bookmarks