save blockbestsellers modif
This commit is contained in:
parent
613ba6398c
commit
de0e0cf3b7
@ -1,60 +1,61 @@
|
|||||||
{*
|
{*
|
||||||
* 2007-2013 PrestaShop
|
* 2007-2013 PrestaShop
|
||||||
*
|
*
|
||||||
* NOTICE OF LICENSE
|
* NOTICE OF LICENSE
|
||||||
*
|
*
|
||||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
* that is bundled with this package in the file LICENSE.txt.
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
* It is also available through the world-wide-web at this URL:
|
* It is also available through the world-wide-web at this URL:
|
||||||
* http://opensource.org/licenses/afl-3.0.php
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
* If you did not receive a copy of the license and are unable to
|
* If you did not receive a copy of the license and are unable to
|
||||||
* obtain it through the world-wide-web, please send an email
|
* obtain it through the world-wide-web, please send an email
|
||||||
* to license@prestashop.com so we can send you a copy immediately.
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
*
|
*
|
||||||
* DISCLAIMER
|
* DISCLAIMER
|
||||||
*
|
*
|
||||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
* versions in the future. If you wish to customize PrestaShop for your
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
* needs please refer to http://www.prestashop.com for more information.
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
*
|
*
|
||||||
* @author PrestaShop SA <contact@prestashop.com>
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
* @copyright 2007-2013 PrestaShop SA
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
*}
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
{if $best_sellers|@count > 0}
|
*}
|
||||||
<!-- MODULE Block best sellers -->
|
{if $best_sellers|@count > 0}
|
||||||
<div id="best-sellers_block_right" class="block products_block">
|
<!-- MODULE Block best sellers -->
|
||||||
<p class="title_block"><a href="{$link->getPageLink('best-sales')}">{l s='D\'autres ont aussi acheté' mod='blockbestsellers'}</a></p>
|
<div id="best-sellers_block_right" class="block products_block">
|
||||||
<div class="block_content">
|
<p class="title_block">{l s='D\'autres ont aussi acheté' mod='blockbestsellers'}</p>
|
||||||
<ul class="product_images">
|
<div class="block_content">
|
||||||
{foreach from=$best_sellers item=product name=myLoop}
|
<ul class="product_images">
|
||||||
{if $product.id_category_default!=12}
|
{foreach from=$best_sellers item=product name=myLoop}
|
||||||
<li class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} clearfix">
|
{if $product.id_category_default!=12}
|
||||||
{if $mobile_device==true}
|
<li class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} clearfix">
|
||||||
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}" class="content_img clearfix">
|
{if $mobile_device==true}
|
||||||
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="61" width="61" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
|
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}" class="content_img clearfix">
|
||||||
</a>
|
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="61" width="61" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
|
||||||
{else}
|
</a>
|
||||||
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}" class="content_img clearfix">
|
{else}
|
||||||
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium_default')}" height="61" width="61" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
|
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}" class="content_img clearfix">
|
||||||
</a>
|
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium_default')}" height="61" width="61" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
|
||||||
|
</a>
|
||||||
{/if}
|
|
||||||
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}">
|
{/if}
|
||||||
{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}
|
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}">
|
||||||
</a>
|
{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}
|
||||||
{if isset($static_token)}
|
</a>
|
||||||
<a class="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='Ajouter' mod='blockbestsellers'}">{l s='Ajouter' mod='blockbestsellers'}</a>
|
{if isset($static_token)}
|
||||||
{else}
|
<a class="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='Ajouter' mod='blockbestsellers'}">{l s='Ajouter' mod='blockbestsellers'}</a>
|
||||||
<a class="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='Ajouter' mod='blockbestsellers'}">{l s='Ajouter' mod='blockbestsellers'}</a>
|
{else}
|
||||||
{/if}
|
<a class="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='Ajouter' mod='blockbestsellers'}">{l s='Ajouter' mod='blockbestsellers'}</a>
|
||||||
<div class="clear"></div>
|
{/if}
|
||||||
</li>
|
<div class="clear"></div>
|
||||||
{/if}
|
</li>
|
||||||
{/foreach}
|
{/if}
|
||||||
</ul>
|
{/foreach}
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- /MODULE Block best sellers -->
|
</div>
|
||||||
{/if}
|
<!-- /MODULE Block best sellers -->
|
||||||
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user