Additionnal information will not break the template anymore

This commit is contained in:
David 2017-12-29 18:22:13 +01:00
parent b8612b7dfd
commit 44da8e13b1
3 changed files with 39 additions and 45 deletions

View File

@ -1808,8 +1808,6 @@ body#order table#cart_summary tbody tr.cart_item .cart_description h5 a{
body#category ul#product_list li div.list-product-price{
font-size:12px;
padding:0px 2% 0px 4%;
position: absolute;
bottom: 10px;
}
body#category ul#product_list li div.list-product-price span.old_price{
display:block;
@ -5123,16 +5121,12 @@ body#product #best-sellers_block_product{
}
*/
#product_list li div.productQuantityAlert{
text-align: center;
/*width: 250px;*/
margin: 0 !important;
padding: 5px 0 !important;
/* background-color: #f49cc3;
box-shadow: 0px 5px 8px -3px #b5b1b1; */
height: 25px;
background-color: #fff;
/*position: absolute;*/
bottom: 0px;
left: 0;
display: block;
line-height: 20px;
text-align: right;
float: right;
}
.productQuantityAlert p{
color: #F45BB7;

View File

@ -28,23 +28,6 @@
{if $product_reduction>0}
<span class="reduction">(-{$product_reduction|round|string_format:'%d'}%)</span>
{/if}
{if isset($product.quantity_all_versions) && $product.quantity_all_versions <= $last_qties && $product.quantity_all_versions > 0}
<div class="productQuantityAlert">
{if $product.quantity_all_versions == 1}
<p>{l s='Warning: 1 item in stock!' mod='categoryscroll'}</p>
{else}
<p>{l s='Warning :' mod='categoryscroll'} {$product.quantity_all_versions} {l s='items in stock' mod='categoryscroll'}</p>
{/if}
</div>
{elseif !isset($product.quantity_all_versions) && $product.quantity <= $last_qties && $product.quantity > 0}
<div class="productQuantityAlert">
{if $product.quantity == 1}
<p>{l s='Warning: 1 item in stock!' mod='categoryscroll'}</p>
{else}
<p>{l s='Warning :' mod='categoryscroll'} {$product.quantity} {l s='items in stock' mod='categoryscroll'}</p>
{/if}
</div>
{/if}
{/if}
{/if}
{* <span class="gradient">
@ -55,6 +38,23 @@
</div>
</div>
</div>
{if isset($product.quantity_all_versions) && $product.quantity_all_versions <= $last_qties && $product.quantity_all_versions > 0}
<div class="productQuantityAlert">
{if $product.quantity_all_versions == 1}
<p>{l s='Warning: 1 item in stock!' mod='categoryscroll'}</p>
{else}
<p>{l s='Warning :' mod='categoryscroll'} {$product.quantity_all_versions} {l s='items in stock' mod='categoryscroll'}</p>
{/if}
</div>
{elseif !isset($product.quantity_all_versions) && $product.quantity <= $last_qties && $product.quantity > 0}
<div class="productQuantityAlert">
{if $product.quantity == 1}
<p>{l s='Warning: 1 item in stock!' mod='categoryscroll'}</p>
{else}
<p>{l s='Warning :' mod='categoryscroll'} {$product.quantity} {l s='items in stock' mod='categoryscroll'}</p>
{/if}
</div>
{/if}
<div class="clearfix"></div>
</li>
{/foreach}

View File

@ -56,29 +56,29 @@
{if $product_reduction>0}
<span class="reduction">(-{$product_reduction|round|string_format:'%d'}%)</span>
{/if}
{if isset($product.quantity_all_versions) && $product.quantity_all_versions <= $last_qties && $product.quantity_all_versions > 0}
<div class="productQuantityAlert">
{if $product.quantity_all_versions == 1}
<p>{l s='Warning: 1 item in stock!'}</p>
{else}
<p>{l s='Warning :'} {$product.quantity_all_versions} {l s='items in stock'}</p>
{/if}
</div>
{elseif !isset($product.quantity_all_versions) && $product.quantity <= $last_qties && $product.quantity > 0}
<div class="productQuantityAlert">
{if $product.quantity == 1}
<p>{l s='Warning: 1 item in stock!'}</p>
{else}
<p>{l s='Warning :'} {$product.quantity} {l s='items in stock'}</p>
{/if}
</div>
{/if}
{/if}
{/if}
</div>
</div>
</div>
{if isset($product.quantity_all_versions) && $product.quantity_all_versions <= $last_qties && $product.quantity_all_versions > 0}
<div class="productQuantityAlert">
{if $product.quantity_all_versions == 1}
<p>{l s='Warning: 1 item in stock!'}</p>
{else}
<p>{l s='Warning :'} {$product.quantity_all_versions} {l s='items in stock'}</p>
{/if}
</div>
{elseif !isset($product.quantity_all_versions) && $product.quantity <= $last_qties && $product.quantity > 0}
<div class="productQuantityAlert">
{if $product.quantity == 1}
<p>{l s='Warning: 1 item in stock!'}</p>
{else}
<p>{l s='Warning :'} {$product.quantity} {l s='items in stock'}</p>
{/if}
</div>
{/if}
<div class="clearfix"></div>
</li>
{/foreach}