YHK Posted April 2, 2010 Share Posted April 2, 2010 Hello, I have a problem with my preview images loading in IE, my product pages load just fine in Safari and Mozilla Firefox. Just IE isnt loading the images. I modified the product-list.tpl file to basically display the products just like the homefeatured products displays the products. I have attached the code, but i have no idea why this doesnt work for IE. {if isset($products) AND $products} {assign var='liHeight' value=310} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags|truncate:80:'...'} getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx' mod='homefeatured'}{/if}{/if} {if $priceDisplay} {convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx' mod='homefeatured'}{/if}{/if} {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} if you check out my site at one of the product categories you will see the products in grid layout and perfect if you use anything but IE. however i need it to show properly in IE since 50% of my clients use IE.Thanks, Link to comment Share on other sites More sharing options...
S@nya Posted September 26, 2011 Share Posted September 26, 2011 Try to remove height="{$homeSize.height}" width="{$homeSize.width}" IE doesn`t know such values of height and width. Try replace it by pixels or just remove it, it works in my case. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now