Jump to content

Alignement produits avec bloc homefeaturedbul


Recommended Posts

Comment résoudre le problème d'alignement de ce bloc ?
Merci !

Ci-joint le code tpl du module

<!-- MODULE Home Featured Products -->

<link href="{$homefeaturedbul_css}" rel="stylesheet" type="text/css" media="all" />
[removed][removed]


{l s='featured products' mod='homefeaturedbul'}
   {if isset($products) AND $products}

           {assign var='liHeight' value=342}
           {assign var='nbItemsPerLine' value=4}
           {assign var='nbLi' value=$products|@count}
           {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
           {assign var='ulHeight' value=$nbLines*$liHeight}

           {foreach from=$products item=product name=homeFeaturedProducts}

{$product.name|escape:'htmlall':'UTF-8'|truncate:60:'...'}

{if $product.manufacturer_name}getManufacturerLink($product.id_manufacturer, $manufacturer.link_rewrite)}" title="Tous les livres de {$product.manufacturer_name}">de {$product.manufacturer_name|strip_tags|truncate:130:'...'}{/if}

{$product.description|strip_tags:'UTF-8'|truncate:200:'...'}
getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" />

                       {if !$priceDisplay || $priceDisplay == 2}
{convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx' mod='homefeaturedbul'}{/if}{/if}
                       {if $priceDisplay}
{convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx' mod='homefeaturedbul'}{/if}{/if}



           {/foreach}


   {else}

{l s='No featured products' mod='homefeaturedbul'}
   {/if}

<!-- /MODULE Home Featured Products -->

37852_FS8L4Izb9boel9sQVhCQ_t

Link to comment
Share on other sites

Premiérement je ne vous ai pas dit : remplissez les discriptions c'est tout, je vous ai dit aussi de remettre le homefeatured.tpl par defaut.
Pourquoi ?
Parce que vous avez mis :

{$product.description|strip_tags:'UTF-8'|truncate:200:'...'}



et dans la version originale de prestashop :

{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}



il y a une trés grande différence entre : 27 et 200

donc si vous voulez qu'on vous aide, suivez nos instructions.
merci

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...