- {if $page_name !='index' && $page_name !='pagenotfound'}
- {include file="$tpl_dir./breadcrumb.tpl"}
- {/if}
-
+
+
+
+
+ {if $page_name !='index' && $page_name !='pagenotfound'}
+ {include file="$tpl_dir./breadcrumb.tpl"}
+ {/if}
+
{if isset($left_column_size) && !empty($left_column_size)}
-
+
{$HOOK_LEFT_COLUMN}
-
+
{/if}
-
-
+
+
{/if}
\ No newline at end of file
diff --git a/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js b/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js
index 63e198425..23c36ec02 100644
--- a/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js
+++ b/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js
@@ -35,7 +35,7 @@ var ajaxCart = {
overrideButtonsInThePage : function(){
//for every 'add' buttons...
$('.ajax_add_to_cart_button').unbind('click').click(function(){
- var idProduct = $(this).attr('rel').replace('nofollow', '').replace('ajax_id_product_', '');
+ var idProduct = $(this).data('id-product');
if ($(this).attr('disabled') != 'disabled')
ajaxCart.add(idProduct, null, false, this);
return false;
diff --git a/themes/default-bootstrap/js/products-comparison.js b/themes/default-bootstrap/js/products-comparison.js
index 75666fe4c..5595d9f65 100644
--- a/themes/default-bootstrap/js/products-comparison.js
+++ b/themes/default-bootstrap/js/products-comparison.js
@@ -58,11 +58,12 @@ function addToCompare(productId){
function compareButtonsStatusRefresh(){
$('.addToCompare').each(function() {
- if ($.inArray(parseInt($(this).prop('rel')),comparedProductsIds)!= -1){
+ console.log($(this).data('id-product'));
+ if ($.inArray(parseInt($(this).data('id-product')),comparedProductsIds)!= -1){
$(this).addClass('checked');
}
else {
- $(this).removeClass('checked');
+ $(this).removeClass('checked');
}
})
}
@@ -74,19 +75,19 @@ function totalValue(value) {
reloadProductComparison = function() {
$('a.cmp_remove').click(function(){
- var idProduct = $(this).prop('rel').replace('ajax_id_product_', '');
+ var idProduct = $(this).data('id-product');
$.ajax({
- url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,
- async: false,
- cache: false,
- success: function(){
+ url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,
+ async: false,
+ cache: false,
+ success: function(){
return true;
}
- });
+ });
});
}
$(document).ready(function() {
- compareButtonsStatusRefresh();
+ compareButtonsStatusRefresh();
});
\ No newline at end of file
diff --git a/themes/default-bootstrap/mobile/product-desc-features.tpl b/themes/default-bootstrap/mobile/product-desc-features.tpl
index deca914b6..902de67e1 100644
--- a/themes/default-bootstrap/mobile/product-desc-features.tpl
+++ b/themes/default-bootstrap/mobile/product-desc-features.tpl
@@ -72,7 +72,20 @@
{assign var="btn_class" value="disabled"}
{capture assign="btn_more"}
{if (isset($accessory.quantity_all_versions) && $accessory.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{if !$PS_CATALOG_MODE}{l s='Out of stock'}{/if}{/if} {/capture}
{/if}
-
{l s='Add to cart'}
+
+ {l s='Add to cart'}
+
{$btn_more}
diff --git a/themes/default-bootstrap/modules/blockcart/blockcart.tpl b/themes/default-bootstrap/modules/blockcart/blockcart.tpl
index af543f92f..39ea46550 100644
--- a/themes/default-bootstrap/modules/blockcart/blockcart.tpl
+++ b/themes/default-bootstrap/modules/blockcart/blockcart.tpl
@@ -215,7 +215,7 @@ var generated_date = {$smarty.now|intval};
{/if}
- {l s='Total shipping (tax exclu.):' mod='blockcart'}
+ {l s='Total shipping (tax excl.):' mod='blockcart'}
{if $shipping_cost_float == 0}{l s='Free shipping!' mod='blockcart'}{else}{$shipping_cost}{/if}
{if $show_tax && isset($tax_cost)}
@@ -230,7 +230,7 @@ var generated_date = {$smarty.now|intval};
diff --git a/themes/default-bootstrap/modules/blockwishlist/view.tpl b/themes/default-bootstrap/modules/blockwishlist/view.tpl
index f66fcf265..4ceaa44c6 100644
--- a/themes/default-bootstrap/modules/blockwishlist/view.tpl
+++ b/themes/default-bootstrap/modules/blockwishlist/view.tpl
@@ -23,88 +23,100 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
{l s='Wishlist' mod='blockwishlist'}
-{if $wishlists}
-
- {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='Wishlist' mod='blockwishlist'}
+ {if $wishlists}
+
+ {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}
-
-{/if}
+ {/foreach}
+
+ {/if}
-
- {assign var='nbItemsPerLine' value=3}
- {assign var='nbItemsPerLineTablet' value=2}
- {assign var='nbLi' value=$products|@count}
- {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
- {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
-
- {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}
-
-
-
-
-
-
- {$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
- {if isset($product.attributes_small)}
- {$product.attributes_small|escape:'html':'UTF-8'}
- {/if}
-
-
-
- {l s='Quantity' mod='blockwishlist'}:
-
-
-
- {l s='Priority' mod='blockwishlist'}:
-
- {l s='High' mod='blockwishlist'}
- {l s='Medium' mod='blockwishlist'}
- {l s='Low' mod='blockwishlist'}
-
-
-
-
-
-
-
-
- {/foreach}
-
-
-
-
+
+ {assign var='nbItemsPerLine' value=3}
+ {assign var='nbItemsPerLineTablet' value=2}
+ {assign var='nbLi' value=$products|@count}
+ {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
+ {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
+
+ {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}
+
+
+
+
+
+
+ {$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
+ {if isset($product.attributes_small)}
+ {$product.attributes_small|escape:'html':'UTF-8'}
+ {/if}
+
+
+
+ {l s='Quantity' mod='blockwishlist'}:
+
+
+
+ {l s='Priority' mod='blockwishlist'}:
+
+ {l s='High' mod='blockwishlist'}
+ {l s='Medium' mod='blockwishlist'}
+ {l s='Low' mod='blockwishlist'}
+
+
+
+
+
+
+
+
+ {/foreach}
+
+
+
\ No newline at end of file
diff --git a/themes/default-bootstrap/product-list.tpl b/themes/default-bootstrap/product-list.tpl
index 35dcb8253..e248b68bb 100644
--- a/themes/default-bootstrap/product-list.tpl
+++ b/themes/default-bootstrap/product-list.tpl
@@ -22,104 +22,207 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
+
{if isset($products)}
{*define numbers of product per line in other page for desktop*}
{if $page_name !='index' && $page_name !='product'}
{assign var='nbItemsPerLine' value=3}
- {assign var='nbItemsPerLineTablet' value=2}
- {assign var='nbItemsPerLineMobile' value=3}
- {else}
- {assign var='nbItemsPerLine' value=4}
- {assign var='nbItemsPerLineTablet' value=3}
- {assign var='nbItemsPerLineMobile' value=2}
- {/if}
- {*define numbers of product per line in other page for tablet*}
- {assign var='nbLi' value=$products|@count}
- {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
- {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
+ {assign var='nbItemsPerLineTablet' value=2}
+ {assign var='nbItemsPerLineMobile' value=3}
+ {else}
+ {assign var='nbItemsPerLine' value=4}
+ {assign var='nbItemsPerLineTablet' value=3}
+ {assign var='nbItemsPerLineMobile' value=2}
+ {/if}
+ {*define numbers of product per line in other page for tablet*}
+ {assign var='nbLi' value=$products|@count}
+ {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
+ {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
{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}
-
-
-
-
-
-
- {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.show_price) && $product.show_price && !isset($restricted_country_mode)}
- {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
- {if isset($product.specific_prices) && $product.specific_prices}
- {displayWtPrice p=$product.price_without_reduction}
- {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'}-{$product.specific_prices.reduction * 100}% {/if}
- {/if}
- {/if}
-
- {/if}
- {if isset($product.new) && $product.new == 1}
{l s='New'} {/if}
- {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
{l s='Sale!'} {/if}
-
-
-
-
- {hook h='displayProductListReviews' product=$product}
-
{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
- {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
-
- {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
- {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
- {if isset($product.specific_prices) && $product.specific_prices}
- {displayWtPrice p=$product.price_without_reduction}
- {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'}-{$product.specific_prices.reduction * 100}% {/if}
- {/if}
- {/if}
-
- {/if}
-
-
- {if isset($product.color_list)}
{$product.color_list}
{/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.online_only) && $product.online_only}{l s='Online only'} {/if}
- {/if}
- {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
- {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}{l s='Reduced price!'} {/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.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
{if ($product.allow_oosp || $product.quantity > 0)}{l s='In Stock'} {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'} {else}{l s='Out of stock'} {/if} {/if}
- {/if}
-
-
+
{/foreach}
@@ -129,10 +232,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}
-
+
-
+
-
+
-
- {if $product->on_sale}
+
+ {if $product->on_sale}
{l s='Sale!'}
{elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice}
{l s='Reduced price!'}
{/if}
-
+
{if $have_image}
{if $jqZoomEnabled && $have_image && !$content_only}
-
-
-
- {else}
-
+
+
+
+ {else}
+
{if !$content_only}{l s='View larger'} {/if}
- {/if}
+ {/if}
{else}
@@ -240,18 +240,18 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if}
{if isset($images) && count($images) > 1}
- {l s='Display all pictures'}
{/if}
+
{l s='Display all pictures'}{/if}
-
+
-
+
-
- {if $product->online_only}
+
+ {if $product->online_only}
{l s='Online only'}
{/if}
-
+
{$product->name|escape:'html':'UTF-8'}
reference}style="display: none;"{/if}>
{l s='Model'}
@@ -266,18 +266,18 @@ var contentOnly = {if $content_only}true{else}false{/if}
{l s='More details'}
{/if}
{/if}
@@ -290,22 +290,22 @@ var contentOnly = {if $content_only}true{else}false{/if}
quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}
{/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} style="display: none;"{/if}>
@@ -325,7 +325,7 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if}*}
-
+
{if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)}
@@ -340,30 +340,30 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if}
{if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
- {if !$content_only}
-
+ {if !$content_only}
+
{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
{l s='Print'}
{if $have_image && !$jqZoomEnabled}{/if}
- {/if}
+ {/if}