Forums / Templates, Stylesheets, Page Layout / Layout weirdness for New Products, All, Featured...

Layout weirdness for New Products, All, Featured...

Locked

Views: 1,044

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Apr 2009, 8:01 PM
#1
zandig avatar

zandig

New Zenner

Join Date:
Mar 2009
Posts:
9
Plugin Contributions:
0

Layout weirdness for New Products, All, Featured...

This issue has been driving me mad for quite some time and I've seen it on ALOT of Zencart sites.

Here is the Cherry Zen test site for example:
http://www.cherryzen.sagefish.com/in...e=products_all

The issue also happens with the 'New Products' and 'Featured Products' links.

Take a look at the above link with Firefox - looks good

Now take a look with Internet Explorer 7 - the product info get pushed way to the right.

Internet Explorer 8 - now both the product image and product info get pushed way to the right.

I've noticed if you have a smaller number of characters in the Admin - 'Configuration/All Listing(New Listing/Featured Listing)/Display Product Description' of say 80 characters it goes away. However the larger the number the further to the right it gets pushed.

Same issue I've been having on my site. Even happens with the standard Zencart install.

If anyone has any idea for a fix it would be greatly appreciated.

Thanks for any help...

30 Apr 2009, 10:54 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Layout weirdness for New Products, All, Featured...

includes/templates/template_default/templates/tpl_modules_products_all_listing.php

Line 119:

<td width="<?php echo IMAGE_PRODUCT_ALL_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">
```Change to:
<td width="<?php echo IMAGE_PRODUCT_ALL_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="left"> ```Maybe that'll keep you out of the sanitarium. :smile:

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

1 May 2009, 5:17 PM
#3
zandig avatar

zandig

New Zenner

Join Date:
Mar 2009
Posts:
9
Plugin Contributions:
0

Re: Layout weirdness for New Products, All, Featured...

Much thanks for pointing me in the right direction!

Your solution works for moving the product image left, however the product details are still pushed way to the right.

I've found a solution for this however.

I changed this line:

<td width="<?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">

to

<td width="<190>" valign="top" class="main" align="center">

I dropped this part of the code:
?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH + 10; ?

and replaced it with a hard-coded 190 which is appropriate for my images.

Now it looks good in Firefox, IE7, IE8, etc!

1 May 2009, 9:45 PM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Layout weirdness for New Products, All, Featured...

Zandig:

Now it looks good in Firefox, IE7, IE8, etc!

Glad to hear you got it.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!