Jump to content

"Accessoires" dans TAB "en savoir plus"


Recommended Posts

bonjour,

je m'adresse aux pros du php et du .tpl

Je souhaiterai afficher mes "accessoires" à la suite de la tab "en savoir plus" afin que mes clients n'aient pas à cliquer sur la tabs accessoires pour les voir.

Je dois modifier le product.tpl mais n'y arrive pas.

Link to comment
Share on other sites

Toujours dans product.tpl et à adapter après :

<!-- description and features -->
{if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments}


               {if $product->description}{l s='More info'}{/if}
       {if $features}{l s='Data sheet'}{/if}
       {if $attachments}{l s='Download'}{/if}


       {$HOOK_PRODUCT_TAB}


{if $product->description}
       <!-- full description -->
{$product->description}
   {/if}
   {if $features}
       <!-- product's features -->

       {foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}{if isset($accessories) AND $accessories}{l s='Accessories'}{/if}
       {/foreach}

   {/if}
   {if $attachments}

       {foreach from=$attachments item=attachment}
{$attachment.name|escape:'htmlall':'UTF-8'}
{$attachment.description|escape:'htmlall':'UTF-8'}
       {/foreach}

   {/if}
   {if isset($accessories) AND $accessories}
       <!-- accessories -->




                   {foreach from=$accessories item=accessory name=accessories_list}
                       {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)}

{$accessory.name|truncate:22:'...'|escape:'htmlall':'UTF-8'}


getImageLink($accessory.link_rewrite, $accessory.id_image, 'home')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" />
{$accessory.description_short|strip_tags|truncate:100:'...'}

{displayWtPrice p=$accessory.price}



{l s='View'}
{l s='Add to cart'}


                   {/foreach}





   {/if}
   {$HOOK_PRODUCT_TAB_CONTENT}


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