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