Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / Featured Products box on main page

Featured Products box on main page

Locked

Started by janks on 20 Jun 2009, 2:19 AM · Views: 1,232

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jun 2009, 2:19 AM
#1
janks avatar

janks

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
1

Post #1 by janks

http://www.glossi.com.au/cart/

Hi guys,
Wondering if anyone could shed some light on a cross browser problem i am currently experiencing.

The Featured Products box on the main page has 2 columns and 3 rows.

Looks fine, and displays perfectly in Firefox, however
In Internet Explorer, with the browser maximised it all gets pushed into 1 column, if i resize the window smaller it goes back to 2 columns.

Has me scratching my head for a few nights trying to work this one out.

20 Jun 2009, 4:29 AM
#2
janks avatar

janks

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
1

Post #2 by janks

I have just switched to 3 columns for now while i resolve this problem.
This seems to display well, but i would prefer to use bigger pictures.

20 Jun 2009, 5:48 AM
#3
janks avatar

janks

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
1

Post #3 by janks

Ok, i found the bug with IE:

working with file includes/modules/featured_products.php

find line:
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS);

and replace it with
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS) - 1;

for some reason with the forumla above, anything that adds up to 100 will kick the last
item to the next line (stupid if you ask me), so adding the "- 1" to the end of the line will
prevent it from hitting 100 and keep it all in line!