Jump to content

Tableau


Recommended Posts

  • 3 weeks later...

j'ai un peu avancé , enfin réussi à afficher les caractéristiques sous forme de tableau

 

par contre maintenant les accessoises dans l'onglet 3 ne s'affichent plus -_-

 

je joins le fichier tpl, si vous voyez l'erreur

 

 

merci

Link to comment
Share on other sites

{if $features}

<!-- product's features -->

<ul id="idTab2" class="bullet">

 

<table class="carac" cellspacing="0" cellpadding="3" style="border-collapse:collapse; text-align=left; margin-top: 10px;">

{foreach from=$features item=feature}

<tr>

<td style="padding: 10px; background-color: #FFFFFF; border: 1px solid #E6E6E6; width: 250px; text-align=left;"><b><span font-weight="bold">{$feature.name|escape:'htmlall':'UTF-8'}</span></b></td>

<td style="padding: 10px; align=left; border: 1px solid #E6E6E6; width: 450px;"><span style="color: #004B91">{$feature.value|escape:'htmlall':'UTF-8'}</span></td>

</tr>

{/foreach}

</table>

{/if}

{if $attachments}

<ul id="idTab9" class="bullet">

{foreach from=$attachments item=attachment}

<li><a href="{$base_dir}attachment.php?id_attachment={$attachment.id_attachment}">{$attachment.name|escape:'htmlall':'UTF-8'}</a><br />{$attachment.description|escape:'htmlall':'UTF-8'}</li>

{/foreach}

</ul>

{/if}

{if isset($accessories) AND $accessories}

<!-- accessories -->

<ul id="idTab4" class="bullet">

<div class="block products_block accessories_block clearfix">

<div class="block_content">

<ul>

{foreach from=$accessories item=accessory name=accessories_list}

{assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)}

<li class="ajax_block_product {if $smarty.foreach.accessories_list.first}first_item{elseif $smarty.foreach.accessories_list.last}last_item{else}item{/if} product_accessories_description">

<h5><a href="{$accessoryLink|escape:'htmlall':'UTF-8'}">{$accessory.name|truncate:100:'...':true|escape:'htmlall':'UTF-8'}</a></h5>

<p class="product_desc">

<a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{$accessory.legend|escape:'htmlall':'UTF-8'}" class="product_image"><img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'productlist')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /></a>

 

</p>

<p class="product_accessories_price">

<span class="price">{displayWtPrice p=$accessory.price}</span>

 

<a class="exclusive button ajax_add_to_cart_button" href="{$base_dir}cart.php?qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'}</a>

</p>{if $product->on_sale}

<span class="on_sale">{l s='On sale!'}</span>

 

 

{/if}

</li>

{/foreach}

</ul>

</div>

</div>

</ul>

{/if}

{$HOOK_PRODUCT_TAB_CONTENT}

</div>

</div>

{/if}

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