Patrice97 Posted November 27, 2010 Share Posted November 27, 2010 Bonjour,Je cherche depuis un moment le moyen d'afficher les meilleures ventes dans homefeatured.tpl, mais j'ai une page blanche avec le code suivant. Quelqu'un aurait une idée pour me mettre sur la voie. {if $best_sellers|@count > 0} {assign var='liHeight' value=160} {assign var='nbItemsPerLine' value=1} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} <!-- /MODULE Block new products Modifier Patrice--> {foreach from=$best_sellers item=$best_sellers name=myLoop limit=3} {$best_sellers.0.name|strip_tags|truncate:40:'...'} {displayWtPrice p=$best_sellers.0.price} getImageLink($best_sellers.0.link_rewrite, $best_sellers.0.id_image, 'medium')}" alt="{$best_sellers.0.legend|escape:htmlall:'UTF-8'}" align="left" />{$best_sellers.description_short|strip_tags|truncate:128:'...'} {/foreach} {else}{l s='Il n'y à pas de meilleurs ventes' mod='homefeatured'} {/if} 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