Jump to content

Afficher plusieur produits dans Promotions.


Recommended Posts

Hello j'ai adapter ce petit tpl pour afficher 4 promotions dans le blockspecial

en premier backup du fichier modules/blockspecials/blockspecials.tpl au cas ou ca ne marcherait pas chez vous.


Hello i've have made a little modification for the blockspecial module.It could now show 4 promotions

First backup your modules/blockspecials/blockspecials.tpl file,in case off.


<!-- MODULE block  blockspecials -->

{l s='' mod='blockspecials'}
{if $specials|@count > 0}






{$specials.0.name|escape:htmlall:'UTF-8'|truncate:20}

{$specials.0.description_short|strip_tags:htmlall:'UTF-8'|truncate:80}
{l s='Voir' mod='blockspecials'}             



{if $specials|@count > 1}





{$specials.1.name|escape:htmlall:'UTF-8'|truncate:20}

{$specials.1.description_short|strip_tags:htmlall:'UTF-8'|truncate:80}
{l s='Voir' mod='blockspecials'}             

{/if}


{if $specials|@count > 2}





{$specials.2.name|escape:htmlall:'UTF-8'|truncate:20}

{$specials.2.description_short|strip_tags:htmlall:'UTF-8'|truncate:80}
{l s='Voir' mod='blockspecials'}             

{/if}


{if $specials|@count > 3}





{$specials.3.name|escape:htmlall:'UTF-8'|truncate:20}

{$specials.3.description_short|strip_tags:htmlall:'UTF-8'|truncate:80}
{l s='Voir' mod='blockspecials'}             

{/if}

{else}
{l s='Pas de Promotions' mod='blockspecials'}
{/if}

<!-- /MODULE Block best sellers -->

Share this post


Link to post
Share on other sites

  • 7 months later...

Je me prends ma pelle et je déterre...

Tout d'abord merci pour ton code cependant je viens de le tester et rien à faire il ne semble pas trouver les promotions, il me marque : pas de promotion en ce moment alors qu'il y en a pourtant.

Une idée pour résoudre ce soucis ?

Merci et bonne journée !

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More