davebox Posted May 17, 2012 Share Posted May 17, 2012 Hi, my front page specials module is not showing thumbnails for products with a reduced price. My .htaccess includes this: RewriteRule ^en/prices-drop$ /prices-drop.php?isolang=en [QSA,L] I copy below my template's tpl for the relevant block (http://www.templatem...demo/38591.html). The same images display correctly in all other places. Any thoughts? Thanks --- <!-- MODULE Block specials --> <div id="specials" class="block products_block"> <h4><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></h4> <div class="block_content"> {if $special} <ul> <li> <a class="products_block_img bordercolor" href="{$special.link}"><img src="{$link->getImageLink($special.link_rewrite,'small')}" alt="{$special.legend|escape:html:'UTF-8'}" title="{$special.name|escape:html:'UTF-8'}" /></a> <div> <h5><a class="product_link" href="{$special.link}" title="{$special.name|escape:html:'UTF-8'}">{$special.name|escape:html:'UTF-8'}</a></h5> <p> <span class="pricecolor price-discount">{if !$priceDisplay}{displayWtPrice p=$special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}</span> {if $special.specific_prices} {assign var='specific_prices' value=$special.specific_prices} {if $specific_prices.reduction_type == 'percentage' && ($specific_prices.from == $specific_prices.to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $specific_prices.to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $specific_prices.from))} <span class="pricecolor reduction">(-{$specific_prices.reduction*100|floatval}%)</span> {/if} {/if} <span class="pricecolor price">{if !$priceDisplay}{displayWtPrice p=$special.price}{else}{displayWtPrice p=$special.price_tax_exc}{/if}</span> </p> </div> </li> </ul> <a class="button_large" href="{$link->getPageLink('prices-drop.php')}" title="{l s='All specials' mod='blockspecials'}">{l s='All specials' mod='blockspecials'}</a> {else} <p>{l s='No specials at this time' mod='blockspecials'}</p> {/if} </div> </div> <!-- /MODULE Block specials --> Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 17, 2012 Share Posted May 17, 2012 Hi davebox, Can you please post a link where we can see this for ourselves? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 17, 2012 Author Share Posted May 17, 2012 Hi Mike, please see: http://bit.ly/Jb8M8b WIP - Will enable shop for the next few hours. Thanks much! Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Screenshot attached in case the shop is not enabled. Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 Hi davebox, Have you already regenerated your thumbnails through the Back Office under Preferences > Images? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Hi Mike, yes all the thumbnails were already refreshed. I also tried to choose all jpg rather than png but no luck. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 Did you also regenerate your htaccess? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Yes, I did. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 Do you have URL rewriting turned on for your site? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 I do. I just tried to turn off Friendly URL (in both option pages) and Automatically redirect to Canonical url, then regenerate htaccess but no joy. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 Can you please try the suggestions posted here and let me know if that resolves your issue? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Thanks for sending that, Mike. I also use a subdomain. Tried all those steps but still an issue, only on the front page / specials. Please advise if any other ideas come to mind. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 Since it's restricted to that module, can you please try resetting it through your Back Office? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Just did, still not working. I attach the module here if it helps. Thanks tmspecials.zip Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 18, 2012 Share Posted May 18, 2012 This appears to potentially be a theme-specific issue. Can you please try temporarily switching back to the default PrestaShop theme and let me know if the issue persists? -Mike Link to comment Share on other sites More sharing options...
davebox Posted May 18, 2012 Author Share Posted May 18, 2012 Yes it does - pls see attached. Link to comment Share on other sites More sharing options...
davebox Posted May 19, 2012 Author Share Posted May 19, 2012 Thanks, Mike. So looks like I figured out what was missing. I had not checked the association between the specials and the thumbnail in the images section of preferences. It should be all good, but as soon as I figured this out I am not able to regenerate my thumbnails any more (and get new thumbnails to display). This is likely not a timeout error. I don't think this was happening before. This is getting quite frustrating. I am following up on the following thread - hope you can spare a few minutes to help. http://www.prestashop.com/forums/topic/157415-permission-error-while-regenerating-thumbnails/ Thank you. 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