From ad6ed3dcf130e6397cac88d0843a1b25ea8a749d Mon Sep 17 00:00:00 2001
From: Kevin Granger
- {l s='Other wishlists of' mod='blockwishlist'} {$current_wishlist.firstname} {$current_wishlist.lastname}:
- {foreach from=$wishlists item=wishlist name=i}
- {if $wishlist.id_wishlist != $current_wishlist.id_wishlist}
- {$wishlist.name}
- {if !$smarty.foreach.i.last}
- /
+
+ {l s='Other wishlists of' mod='blockwishlist'} {$current_wishlist.firstname} {$current_wishlist.lastname}:
+ {foreach from=$wishlists item=wishlist name=i}
+ {if $wishlist.id_wishlist != $current_wishlist.id_wishlist}
+ {$wishlist.name}
+ {if !$smarty.foreach.i.last}
+ /
+ {/if}
{/if}
- {/if}
- {/foreach}
-
- {$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
- {if isset($product.attributes_small)}
- {$product.attributes_small|escape:'html':'UTF-8'}
- {/if}
-
-
-
-
-
-
-
+ {$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
+ {if isset($product.attributes_small)}
+ {$product.attributes_small|escape:'html':'UTF-8'}
+ {/if}
+
+
+
+
+
+
+ {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}{l s='Wishlist' mod='blockwishlist'}
-{if $wishlists}
-{l s='Wishlist' mod='blockwishlist'}
+ {if $wishlists}
+
- {foreach from=$products item=product name=i}
- {math equation="(total%perLine)" total=$smarty.foreach.i.total perLine=$nbItemsPerLine assign=totModulo}
- {math equation="(total%perLineT)" total=$smarty.foreach.i.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
- {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
- {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
-
-
-
-
+ {foreach from=$products item=product name=i}
+ {math equation="(total%perLine)" total=$smarty.foreach.i.total perLine=$nbItemsPerLine assign=totModulo}
+ {math equation="(total%perLineT)" total=$smarty.foreach.i.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
+ {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
+ {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
+
+
+
+
{foreach from=$products item=product name=products}
- {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
- {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
- {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}
- {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
- {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
- {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
+ {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
+ {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
+ {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}
+ {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
+ {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
+ {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
@@ -129,10 +144,10 @@
var comparator_max_item = {$comparator_max_item};
var comparedProductsIds = [];
{foreach from=$compared_products key=k item=product}comparedProductsIds.push({$product});{/foreach}
- $('document').ready(function(){
- blockHover();
- });
-
+ $('document').ready(function(){
+ blockHover();
+ });
+
{/if}
+
{if $page_name !='index' && $page_name !='product'}
+ //-->
{/if}
{/if}
diff --git a/themes/default-bootstrap/product.tpl b/themes/default-bootstrap/product.tpl
index 9899fbdac..650a51947 100644
--- a/themes/default-bootstrap/product.tpl
+++ b/themes/default-bootstrap/product.tpl
@@ -180,31 +180,31 @@ var contentOnly = {if $content_only}true{else}false{/if}
{$confirmation}
-
- {if isset($quick_view) && $quick_view}Quick view{/if}
- {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
-
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
- {hook h='displayProductListReviews' product=$product}
-
{/if} + {l s='Display all pictures'}{/if}
{l s='Online only'}
{/if} - +reference}style="display: none;"{/if}> @@ -266,18 +266,18 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if}quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {*{l s='Availability:'}*} quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
- +quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}
- +quantity > 0) OR !$product->available_for_order OR $PS_CATALOG_MODE OR !isset($product->available_date) OR $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> {l s='Availability date:'} {dateFormat date=$product->available_date full=false}
- - + +- quantity <= 0}href="http://schema.org/OutOfStock"{else}href="http://schema.org/InStock"{/if}> + quantity <= 0}href="http://schema.org/OutOfStock"{else}href="http://schema.org/InStock"{/if}> {if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice}
quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> - - - minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> - - + + + minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> + +
- +minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> @@ -441,7 +441,7 @@ var contentOnly = {if $content_only}true{else}false{/if} checkMinimalQuantity(); {/if} - + {if isset($groups)}
quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block"> - + +
quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block"> +
{if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if} - -| {$feature.name|escape:'html':'UTF-8'} | {$feature.value|escape:'html':'UTF-8'} | - {/if} +
| {$feature.name|escape:'html':'UTF-8'} | {$feature.value|escape:'html':'UTF-8'} | + {/if}
| {l s='Quantity'} | -{l s='Discount'} | -{l s='You Save'} | -
|---|---|---|
| {l s='Quantity'} | +{l s='Discount'} | +{l s='You Save'} | +
| {$quantity_discount.quantity|intval} | - -- {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} - {convertPrice price=$quantity_discount.real_value|floatval} - {else} - {$quantity_discount.real_value|floatval}% - {/if} - | -- {l s='Up to'} - {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} - {$discountPrice=$productPrice-$quantity_discount.real_value|floatval} - {else} - {$discountPrice=$productPrice-($productPrice*$quantity_discount.reduction)|floatval} - {/if} - {$discountPrice=$discountPrice*$quantity_discount.quantity} - {$qtyProductPrice = $productPrice*$quantity_discount.quantity} - {convertPrice price=$qtyProductPrice-$discountPrice} - | -
| {$quantity_discount.quantity|intval} | + ++ {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} + {convertPrice price=$quantity_discount.real_value|floatval} + {else} + {$quantity_discount.real_value|floatval}% + {/if} + | ++ {l s='Up to'} + {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} + {$discountPrice=$productPrice-$quantity_discount.real_value|floatval} + {else} + {$discountPrice=$productPrice-($productPrice*$quantity_discount.reduction)|floatval} + {/if} + {$discountPrice=$discountPrice*$quantity_discount.quantity} + {$qtyProductPrice = $productPrice*$quantity_discount.quantity} + {convertPrice price=$qtyProductPrice-$discountPrice} + | +
| - {l s='Features:'} - | + {l s='Features:'} + {assign var='taxes_behavior' value=false} {if $use_taxes && (!$priceDisplay || $priceDisplay == 2)} {assign var='taxes_behavior' value=true} @@ -48,37 +48,37 @@ {assign var='replace_id' value=$product->id|cat:'|'}
-
-
-
-
+
+ {l s='Sale!'}
- {/if}
- {/if}
-
+
+
{l s='Sale!'}
+ {/if}
+ {/if}
+ {$product->name|truncate:45:'...'|escape:'html':'UTF-8'}-
+
{if isset($product->show_price) && $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
{convertPrice price=$product->getPrice($taxes_behavior)}
{if isset($product->specificPrice) && $product->specificPrice}
- {if {$product->specificPrice.reduction_type == 'percentage'}}
- {displayWtPrice p=$product->getPrice($taxes_behavior)+($product->getPrice($taxes_behavior)* $product->specificPrice.reduction)}
- -{$product->specificPrice.reduction*100|floatval}%
- {else}
- {convertPrice price=($product->getPrice($taxes_behavior) + $product->specificPrice.reduction)}
- -{convertPrice price=$product->specificPrice.reduction}
- {/if}
- {/if}
+ {if {$product->specificPrice.reduction_type == 'percentage'}}
+ {displayWtPrice p=$product->getPrice($taxes_behavior)+($product->getPrice($taxes_behavior)* $product->specificPrice.reduction)}
+ -{$product->specificPrice.reduction*100|floatval}%
+ {else}
+ {convertPrice price=($product->getPrice($taxes_behavior) + $product->specificPrice.reduction)}
+ -{convertPrice price=$product->specificPrice.reduction}
+ {/if}
+ {/if}
{if $product->on_sale}
{elseif $product->specificPrice AND $product->specificPrice.reduction}
-
+
- {l s='Reduced price!'}
-
+
+ {l s='Reduced price!'}
+
{/if}
{if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
@@ -108,22 +108,28 @@
{/if}
-
-
-
-
-
+
+
+
+ |
{/foreach}