label promo

This commit is contained in:
Romu 2017-06-13 01:18:47 -07:00
parent 95af59f476
commit 1cd90dd595
2 changed files with 13 additions and 0 deletions

View File

@ -4067,6 +4067,15 @@ main#categorycms { margin-bottom: 30px }
background: #e4535d; background: #e4535d;
color: #fff; color: #fff;
} }
#product #buy_block .price-percent-reduction {
background: #ffd51b;
display: block;
font-size: 28px;
margin: -15px -30px 0 -30px;
padding: 12px 15px 8px 15px;
text-align: center;
z-index: 5;
}
#product #image-block .product-new-label { #product #image-block .product-new-label {
background: #529bb6; background: #529bb6;
color: #fff; color: #fff;
@ -4498,6 +4507,7 @@ main#categorycms { margin-bottom: 30px }
#product #main-info .pictos .picto:nth-child(even) { padding-left: 15px; } #product #main-info .pictos .picto:nth-child(even) { padding-left: 15px; }
#product #main-info .pictos .picto .img { width: 100px; text-align: center; } #product #main-info .pictos .picto .img { width: 100px; text-align: center; }
#buy_block { padding-right: 15px; padding-left: 15px; } #buy_block { padding-right: 15px; padding-left: 15px; }
#product #buy_block .price-percent-reduction { padding-left: 10px; padding-right: 10px; margin: -15px -15px 0 -15px }
} }
/************************************************************************************************************* /*************************************************************************************************************

View File

@ -219,6 +219,9 @@
{if $product->on_sale && !$isFlash} {if $product->on_sale && !$isFlash}
<span class="solde">{l s='En solde !'}</span> <span class="solde">{l s='En solde !'}</span>
{/if} {/if}
{if $percentReduction}
<span class="price-percent-reduction">{if $isFlash}{l s='Vente Flash'}{else}{l s='Promo'}{/if} | -{$percentReduction}%</span>
{/if}
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
<!-- prices --> <!-- prices -->
<div> <div>