44 lines
3.0 KiB
Smarty
Executable File
44 lines
3.0 KiB
Smarty
Executable File
<div class="tiroir">
|
|
<h3><span>[{$categorie->name}]</span></h3>
|
|
<div class="hidden texte">
|
|
<table class="produits" style="width:433px">
|
|
{assign var=compteur value=1}
|
|
{foreach from=$categorie->products item=product}
|
|
<tr class="produit">
|
|
<td class="col1">
|
|
<span class="diagEtoile">{$compteur++}</span>
|
|
</td>
|
|
<td class="col2">
|
|
<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
|
|
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="108" height="150" />
|
|
</a>
|
|
</td>
|
|
<td class="col3">
|
|
<h4><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'|truncate:48:'...'}</a></h4>
|
|
<div class="product_desc"><p><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description|strip_tags:'UTF-8'|truncate:80:'...'}" >{$product.description|replace:"<p":"<span"|replace:"</p":"</span"|replace:" ":" "}</a></p></div>
|
|
|
|
{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
|
|
{/if}
|
|
{if ($product.allow_oosp || $product.quantity > 0)}
|
|
<div class="hidden">
|
|
{if isset($static_token)}
|
|
<a class="button ajax_add_to_cart_button uppercase" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)}" title="{l s='Add to cart'}">{l s='Commander'}{*if $rituel==1}{l s='Commander mon rituel Matin'}{else if $rituel==2}{l s='Commander mon rituel soir'}{elseif $rituel==3}{l s='Commander mes soins beauté'}{elseif $rituel==4}{l s='Commander mes soins corps'}{/if*}</a>
|
|
{else}
|
|
<a class="button ajax_add_to_cart_button uppercase" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)}" title="{l s='Add to cart'}">{l s='Commander'}{*if $rituel==1}{l s='Commander mon rituel Matin'}{else if $rituel==2}{l s='Commander mon rituel soir'}{elseif $rituel==3}{l s='Commander mes soins beauté'}{elseif $rituel==4}{l s='Commander mes soins corps'}{/if*}</a>
|
|
{/if}
|
|
</div>
|
|
<div class="submitAlone submit">
|
|
<input type="button" value="{l s='Commander'}" />
|
|
</div>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
<div class="submit commanderRituel">
|
|
<input type="button" value="{if $rituel==1}{l s='Commander mon rituel Matin'}{else if $rituel==2}{l s='Commander mon rituel soir'}{elseif $rituel==3}{l s='Commander mes soins beauté'}{elseif $rituel==4}{l s='Commander mes soins corps'}{/if}" />
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div> |