innocuous Posted October 16, 2012 Share Posted October 16, 2012 Hi, PS 1.5.1, default theme. The images of featured products on homepage are not displayed in IE (all versions). IE displays category, product pages properly. ISSUE IS ONLY WITH HOMEPAGE in IE. Everything works in Firefox and Chrome. FIREFOX/Chrome IE homefeatured.css (in modules/homefeatured) homefeatured.css homefeatured.tpl (renamed to .txt here as unable to upload tpl files) homefeatured.txt Can anyone help? Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 your shop url is available? Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Sorry, developing on XAMPP so offline at the moment. I attached the homefeatured files as I understand they control the display of products on the homepage. Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 Sorry, developing on XAMPP so offline at the moment. I attached the homefeatured files as I understand they control the display of products on the homepage. sure, but we dont know what exactly is in output, after compilation. can you paste here code of sample product? Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Here you go: IESOURCE: iesource.txt FIREFOX SOURCE: fsource.txt Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 Here you go: IESOURCE: iesource.txt FIREFOX SOURCE: fsource.txt try to open in IE: http://localhost/prestashop/img/p/1/5/15-featured_default.jpg it works? if yes, in my opinion, problem is probably with width="" and height="" param in: http://localhost/prestashop/img/p/1/5/15-featured_default.jpg" height="" width="" you must change it in homefeatured.tpl file, try to change it and refresh your site Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Yes, the jpg opens in IE. In homefeatured.tpl the width and height is setby following code: <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" height="{$featuredSize.height}" width="{$featuredSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> I have added new image in preferences->images in BO with name featured_default and dimensions 210px by 240px. If I change the code back to home_default instead of featured_default, then the images are properly displayed in IE. What could be the problem? Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 Yes, the jpg opens in IE. In homefeatured.tpl the width and height is setby following code: <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" height="{$featuredSize.height}" width="{$featuredSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> I have added new image in preferences->images in BO with name featured_default and dimensions 210px by 240px. If I change the code back to home_default instead of featured_default, then the images are properly displayed in IE. What could be the problem? so we have a solution! After adding new image properties you must re-generate thumbnails in back office, after that new thumbnails will works properly Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 I had already regenerated images and even turned on force compile. Doesn't solve with IE. Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 even if you clear cache in your browser? Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Yes, tried everything! cleared cache, closed browser, rebooted pc, cleared cache, regenerated thumbnails, renamed featured_default etc. Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 omg it's weird :| try to change the width and height parameter manually, add there own values. Maybe this will work Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Manually added width/height to the tpl file worked. Weird! Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2012 Share Posted October 16, 2012 (edited) Manually added width/height to the tpl file worked. Weird! IE fails with empty values of height="" and width="" so as I say in other post - that is the main problem. you named new image dimensions as featured_default, right? not "featured" but "featured_default" maybe try to change the: {$featuredSize.height} to {$featured_defaultSize.height}, to width too Edited October 16, 2012 by vekia (see edit history) Link to comment Share on other sites More sharing options...
innocuous Posted October 16, 2012 Author Share Posted October 16, 2012 Yes, its called featured_default. Doesn't work with {$featured_defaultSize.height} I don't think its an issue with empty height/width values as if I use home_default (which has lower h x w) it works. Also category pages display perfectly in IE and they too have empty height/width. Seems I have to stick with entering values in tpl instead of relying on BO! Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 16, 2012 Share Posted October 16, 2012 Hello all, thank you vekia for the follow up and solution. innocuous, I will be sure to forward this information to our team to see if we can rectify this issue in the back office. For now, I will mark this thread as Solved. Thank you for choosing PrestaShop! 1 Link to comment Share on other sites More sharing options...
Vallo92 Posted October 22, 2012 Share Posted October 22, 2012 Sorry I also have the same problem with IE .... Do you know help me solve it? Link to comment Share on other sites More sharing options...
innocuous Posted October 23, 2012 Author Share Posted October 23, 2012 vallo92 just hardcode width and height in px in the corresponding .tpl files where the errors occur. Link to comment Share on other sites More sharing options...
Vallo92 Posted October 23, 2012 Share Posted October 23, 2012 hello sorry for my ignorance, but I do not know which file I need to change. Could you tell me which file to edit and which folders are located? Could you tell me in what way I have to change the lines? Link to comment Share on other sites More sharing options...
Vallo92 Posted October 25, 2012 Share Posted October 25, 2012 Sorry for the double post but you know help me? : ( Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2012 Share Posted October 25, 2012 Sorry for the double post but you know help me? : ( you must edit homefeatured.tpl file located in modules/homefeatured/ directory. you must find there something like: <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" height="{$featuredSize.height}" width="{$featuredSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> and edit values of: height="{$featuredSize.height}" width="{$featuredSize.width}" for example: height="300" width="450" Link to comment Share on other sites More sharing options...
Vallo92 Posted October 25, 2012 Share Posted October 25, 2012 you must edit homefeatured.tpl file located in modules/homefeatured/ directory. you must find there something like: <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" height="{$featuredSize.height}" width="{$featuredSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> and edit values of: height="{$featuredSize.height}" width="{$featuredSize.width}" for example: height="300" width="450" hello, thanks for reply! I just made the changes you suggested but nothing has changed in the home with IE ... : ( Link to comment Share on other sites More sharing options...
innocuous Posted October 26, 2012 Author Share Posted October 26, 2012 vallo92 in BO turn on force compile option 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