Jump to content

[SOLVED] Specials (Price drop) thumbnails not showing


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...