Merge branch 'product_sauv_stack' into develop
This commit is contained in:
commit
0abd7d58ee
@ -1912,14 +1912,15 @@ main#categorycms { margin-bottom: 30px }
|
||||
#postcms .pack_content .price-percent-reduction {
|
||||
background: url("../img/reduction.png") no-repeat center top;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
height: 70px;
|
||||
line-height: 74px;
|
||||
line-height: 58px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
text-align: center;
|
||||
top: 7px;
|
||||
left: 15px;
|
||||
text-align: left;
|
||||
padding-left: 5px;
|
||||
top: 0px;
|
||||
width: 70px;
|
||||
}
|
||||
#postcms .pack_content .reinsurance { border-top: 1px solid #dfdfdf; text-align: center; border-top: 1px solid #dfdfdf; text-align: center;
|
||||
@ -2325,7 +2326,8 @@ main#categorycms { margin-bottom: 30px }
|
||||
#postcms .pack_bottom .price{ margin-top: 15px; }
|
||||
}
|
||||
@media (max-width: 570px) {
|
||||
#postcms .pack_content .price-percent-reduction { background-size: 70% auto; font-size: 14px; line-height: 50px; right: 10px; }
|
||||
#postcms .pack_content .price-percent-reduction { background-size: 70% auto; font-size: 14px; line-height: 50px; right: 10px; background-size: 85% auto;
|
||||
background-position: left top;}
|
||||
#postcms .tips_utile .title {font-size: 25px;}
|
||||
#postcms .intro_note .left {
|
||||
font-size: 19px;
|
||||
|
@ -52,7 +52,11 @@
|
||||
{assign var='product' value=$post->products.0}
|
||||
{assign var='id_image' value=Product::getCover($product->id)}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 col-xs-4 image">
|
||||
{if $product->specific_prices.reduction_type == 'percentage'}
|
||||
<span class="price-percent-reduction">-{$product->specific_prices.reduction * 100}%</span>
|
||||
{/if}
|
||||
<a href="{$link->getProductLink($product->id, $product->link_rewrite)}" title="{$product->name|escape:'html':'UTF-8'}">
|
||||
<img class="img-responsive" src="{$link->getImageLink($product->link_rewrite, $id_image.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$product->name|escape:'html':'UTF-8'}" title="{$product->name|escape:'html':'UTF-8'}" itemprop="image" />
|
||||
</a>
|
||||
@ -67,9 +71,7 @@
|
||||
{l s='au lieu de'} <span class="barre">{displayWtPrice p=$product->price_without_reduction}</span>
|
||||
</span> <br />
|
||||
{/if}
|
||||
{if $product->specific_prices.reduction_type == 'percentage'}
|
||||
<span class="price-percent-reduction">-{$product->specific_prices.reduction * 100}%</span>
|
||||
{/if}
|
||||
|
||||
|
||||
<a class="btn ajax_add_to_cart_button" data-text="{l s='J\'achete'}" data-id-product="{$product->id}" data-minimal_quantity="1" onclick="trackConversion(`{CMSCategory::getNameStatic($post->id_category)}`, `Le produit qui me sauve`, `Ajout au panier depuis la page Astuce`);">
|
||||
<i class="icon icon-shopping-cart"></i> <span>{l s='J\'achete'}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user