diff --git a/admin-dev/themes/default/css/admin.css b/admin-dev/themes/default/css/admin.css index 5ff97f4e0..ea86b6c6b 100644 --- a/admin-dev/themes/default/css/admin.css +++ b/admin-dev/themes/default/css/admin.css @@ -664,4 +664,8 @@ ul.listForm li {padding-bottom:3px;} /******** CREATE AN ORDER **************/ #carrier_form label{padding-top:0} -#carrier_form input{margin-top:3px} \ No newline at end of file +#carrier_form input{margin-top:3px} + +/************** SCENE *****************/ + +#large_scene_image{clear:both;border:1px solid transparent;} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl index f5cc56a04..365736bbd 100644 --- a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl @@ -27,7 +27,7 @@ {block name="label"} {if $input.type == 'color'} -
+
{/if} {$smarty.block.parent} {/block} diff --git a/admin-dev/themes/default/template/controllers/modules/js.tpl b/admin-dev/themes/default/template/controllers/modules/js.tpl index b0bc45df2..d920b668b 100644 --- a/admin-dev/themes/default/template/controllers/modules/js.tpl +++ b/admin-dev/themes/default/template/controllers/modules/js.tpl @@ -321,6 +321,46 @@ catch(e){} return false; }); + + $('.toggle_favorite').live('click', function(event) + { + var el = $(this); + var value_pref = el.data('value'); + var module_pref = el.data('module'); + var action_pref = 'f'; + try + { + resAjax = $.ajax({ + type:"POST", + url : ajaxCurrentIndex, + async: true, + data : { + ajax : "1", + token : token, + controller : "AdminModules", + action : "saveFavoritePreferences", + action_pref : action_pref, + module_pref : module_pref, + value_pref : value_pref + }, + success : function(data) + { + // res.status = cache or refresh + if (data == 'OK') + { + el.parent('div').find('.toggle_favorite').toggle(); + } + + }, + error: function(res,textStatus,jqXHR) + { + //jAlert("TECHNICAL ERROR"+res); + } + }); + } + catch(e){} + return false; + }); }); {/literal} diff --git a/admin-dev/themes/default/template/controllers/modules/list.tpl b/admin-dev/themes/default/template/controllers/modules/list.tpl index ff01f4620..aaee81658 100644 --- a/admin-dev/themes/default/template/controllers/modules/list.tpl +++ b/admin-dev/themes/default/template/controllers/modules/list.tpl @@ -79,7 +79,18 @@

{if isset($module->description) && $module->description ne ''}{l s='Description'} : {$module->description}{else} {/if}

{if isset($module->message)}
{$module->message}
{/if}
- {if !isset($module->not_on_disk)}{$module->optionsHtml}{else} {/if} + {if !isset($module->not_on_disk)} + {$module->optionsHtml} + {if isset($module->preferences) && $module->preferences['favorite'] == 1} + {l s='Remove from Favorites'} + + {else} + + {l s='Mark as Favorite'} + {/if} + {else} +   + {/if}
diff --git a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl index a73256926..8c860d2e8 100644 --- a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl +++ b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl @@ -66,7 +66,7 @@ {else if !isset($module->not_on_disk)} {$module->optionsHtml}
 
- Valider + {l s='Submit'} {else} {l s='Install'} {/if} diff --git a/admin-dev/themes/default/template/helpers/list/list_content.tpl b/admin-dev/themes/default/template/helpers/list/list_content.tpl index 596c5ba3e..add0db76d 100644 --- a/admin-dev/themes/default/template/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_content.tpl @@ -116,6 +116,8 @@ {if isset($params.color) && isset($tr.color)} {/if} + {/block} + {block name="close_td"} {/block} {/foreach} diff --git a/admin-dev/themes/default/template/helpers/list/list_header.tpl b/admin-dev/themes/default/template/helpers/list/list_header.tpl index 31df8a497..1a821e4f6 100644 --- a/admin-dev/themes/default/template/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_header.tpl @@ -189,8 +189,8 @@ {elseif $params.type == 'date' || $params.type == 'datetime'} - {l s='From'}
- {l s='To'} + {l s='From'}
+ {l s='To'} {elseif $params.type == 'select'} {if isset($params.filter_key)} list_activities as $i => $activity): ?> - + diff --git a/install-dev/upgrade/php/add_column_orders_reference_if_not_exists.php b/install-dev/upgrade/php/add_column_orders_reference_if_not_exists.php index 5088f1ca7..3a5676e63 100644 --- a/install-dev/upgrade/php/add_column_orders_reference_if_not_exists.php +++ b/install-dev/upgrade/php/add_column_orders_reference_if_not_exists.php @@ -28,5 +28,5 @@ function add_column_orders_reference_if_not_exists() { $column = Db::getInstance()->executeS('SHOW FIELDS FROM `'._DB_PREFIX_.'orders` LIKE "reference"'); if (empty($column)) - return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'orders` ADD COLUMN `reference` varchar(9) AFTER `id_order`'); + return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'orders` ADD COLUMN `reference` varchar(10) AFTER `id_order`'); } diff --git a/install-dev/upgrade/php/block_category_1521.php b/install-dev/upgrade/php/block_category_1521.php index fe7c6825b..c6b1846f7 100644 --- a/install-dev/upgrade/php/block_category_1521.php +++ b/install-dev/upgrade/php/block_category_1521.php @@ -26,11 +26,11 @@ function block_category_1521() { - if (!Db::getInstance()->ExecuteS('SELECT `'._DB_PREFIX_.'configuration` WHERE `name`=\'BLOCK_CATEG_MAX_DEPTH\' ')) + if (!Db::getInstance()->getValue('SELECT FROM `'._DB_PREFIX_.'configuration` WHERE `name` LIKE \'BLOCK_CATEG_MAX_DEPTH\' ')) Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration` ,`id_shop_group` ,`id_shop` ,`name` ,`value` ,`date_add` ,`date_upd`) - VALUES (NULL, NULL, NULL, \'BLOCK_CATEG_MAX_DEPTH\', 2, NOW(), NOW())'); - else if (Db::getInstance()->ExecuteS('SELECT `'._DB_PREFIX_.'configuration` WHERE and `value` IS NOT NULL AND `value` <> 0')) - Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = 2 WHERE `name`=\'BLOCK_CATEG_MAX_DEPTH\' '); + VALUES (NULL, NULL, NULL, \'BLOCK_CATEG_MAX_DEPTH\', 4, NOW(), NOW())'); + else if ($maxdepth = (int)Db::getInstance()->getValue('SELECT FROM `'._DB_PREFIX_.'configuration` WHERE `value` IS NOT NULL AND `value` <> 0')) + Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = '.($maxdepth + 1).' WHERE `name` LIKE\'BLOCK_CATEG_MAX_DEPTH\''); } \ No newline at end of file diff --git a/install-dev/upgrade/php/update_order_messages.php b/install-dev/upgrade/php/update_order_messages.php index 357f2449f..369b753d5 100644 --- a/install-dev/upgrade/php/update_order_messages.php +++ b/install-dev/upgrade/php/update_order_messages.php @@ -33,42 +33,38 @@ function update_order_messages() $nb_loop = ceil($count_messages / $step); for($i = 0; $i < $nb_loop; $i++) { - $sql = 'SELECT id_message, message FROM '._DB_PREFIX_.'message LIMIT '.(int)$start.', '.(int)$step; - if ($messages = Db::getInstance()->executeS($sql)) - { - if(is_array($messages)) - foreach($messages as $message) + $sql = 'SELECT id_message, message FROM `'._DB_PREFIX_.'message` WHERE message REGEXP \'query($sql)) + while ($message = Db::getInstance()->nextRow($messages)) + { + if(is_array($message)) { - $sql = 'UPDATE '._DB_PREFIX_.'message SET message = \''.pSQL(Tools::htmlentitiesDecodeUTF8(br2nl($message['message']))).'\' + $sql = 'UPDATE `'._DB_PREFIX_.'message` SET message = \''.pSQL(Tools::htmlentitiesDecodeUTF8(br2nl($message['message']))).'\' WHERE id_message = '.(int)$message['id_message']; $result = Db::getInstance()->execute($sql); } - $start += ($step + 1); - } + } } - - $count_messages = Db::getInstance()->getValue('SELECT count(id_customer_message) FROM '._DB_PREFIX_.'customer_message'); $nb_loop = $start = 0; if($count_messages > 0) $nb_loop = ceil($count_messages / $step); for($i = 0; $i < $nb_loop; $i++) { - $sql = 'SELECT id_customer_message, message FROM '._DB_PREFIX_.'customer_message LIMIT '.(int)$start.', '.(int)$step; - if ($messages = Db::getInstance()->executeS($sql)) - { - if(is_array($messages)) - foreach($messages as $message) - { - $sql = 'UPDATE '._DB_PREFIX_.'customer_message SET message = \''.pSQL(Tools::htmlentitiesDecodeUTF8(str_replace('&', '&', $message['message']))).'\' + $sql = 'SELECT id_customer_message, message FROM `'._DB_PREFIX_.'customer_message` WHERE message REGEXP \'query($sql)) + while ($message = Db::getInstance()->nextRow($messages)) + { + if(is_array($message)) + { + $sql = 'UPDATE `'._DB_PREFIX_.'customer_message` SET message = \''.pSQL(Tools::htmlentitiesDecodeUTF8(str_replace('&', '&', $message['message']))).'\' WHERE id_customer_message = '.(int)$message['id_customer_message']; Db::getInstance()->execute($sql); } - $start += ($step + 1); - } + } } } function br2nl($str) { - return preg_replace("//i", "\n", $str); + return str_replace(array('
', '
', '
'), "\n", $str); } \ No newline at end of file diff --git a/install-dev/upgrade/sql/1.5.0.13.sql b/install-dev/upgrade/sql/1.5.0.13.sql index 65121283c..c89ae965e 100644 --- a/install-dev/upgrade/sql/1.5.0.13.sql +++ b/install-dev/upgrade/sql/1.5.0.13.sql @@ -23,7 +23,7 @@ INSERT INTO `PREFIX_order_invoice_payment` -- Step 2: Add the collumn id_order_reference ALTER TABLE `PREFIX_order_payment` - ADD COLUMN `order_reference` VARCHAR(9) AFTER `id_order`, + ADD COLUMN `order_reference` VARCHAR(10) AFTER `id_order`, ADD INDEX `order_reference`(`order_reference`); diff --git a/install-dev/upgrade/sql/1.5.4.1.sql b/install-dev/upgrade/sql/1.5.4.1.sql index ea631f817..4d6f37c0e 100644 --- a/install-dev/upgrade/sql/1.5.4.1.sql +++ b/install-dev/upgrade/sql/1.5.4.1.sql @@ -1,3 +1,11 @@ SET NAMES 'utf8'; -ALTER TABLE `PREFIX_carrier` CHANGE `max_weight` `max_weight` DECIMAL( 20, 6 ) NULL DEFAULT '0'; \ No newline at end of file +ALTER TABLE `PREFIX_carrier` CHANGE `max_weight` `max_weight` DECIMAL( 20, 6 ) NULL DEFAULT '0'; + +DELETE ms.*, hm.* FROM `PREFIX_module_shop` ms INNER JOIN `PREFIX_hook_module` hm USING (`id_module`) INNER JOIN `PREFIX_module` m USING (`id_module`) WHERE m.`name` LIKE 'backwardcompatibility'; + +UPDATE `PREFIX_module` SET `active` = 0 WHERE `name` LIKE 'backwardcompatibility'; + +ALTER TABLE `PREFIX_orders` CHANGE `reference` `reference` VARCHAR( 10 ) NULL DEFAULT NULL; + +ALTER TABLE `PREFIX_order_payment` CHANGE `order_reference` `order_reference` VARCHAR( 10 ) NULL DEFAULT NULL; \ No newline at end of file diff --git a/js/jquery/plugins/jqzoom/jquery.jqzoom.js b/js/jquery/plugins/jqzoom/jquery.jqzoom.js index 2e03940a7..d74f8dc1c 100755 --- a/js/jquery/plugins/jqzoom/jquery.jqzoom.js +++ b/js/jquery/plugins/jqzoom/jquery.jqzoom.js @@ -31,9 +31,10 @@ var imageWidth = $(this).get(0).offsetWidth; var imageHeight = $(this).get(0).offsetHeight; - noalt = $(this).attr("alt"); + attr = typeof($(this).attr("rel")) != 'undefined' ? "rel" : "alt"; + noalt = $(this).attr(attr); var bigimage = noalt; - $(this).attr("alt", ''); + $(this).attr(attr, ''); if($("div.zoomdiv").get().length == 0) $(this).after("
"); @@ -67,7 +68,7 @@ $("div.zoomdiv").get(0).scrollLeft = (scrollx) * scalex ; }); }, function() { - $(this).attr("alt", noalt); + $(this).attr(attr, noalt); $("div.zoomdiv").hide(); $(document.body).unbind("mousemove"); $(".lenszoom").remove(); diff --git a/modules/blockadvertising/config.xml b/modules/blockadvertising/config.xml index 37f1f7221..62b227aae 100755 --- a/modules/blockadvertising/config.xml +++ b/modules/blockadvertising/config.xml @@ -1,9 +1,9 @@ blockadvertising - + - + 1 diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 9c37e54ed..c42dc72cf 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -449,8 +449,8 @@ var ajaxCart = { content += ' '; else content += ''; - if (typeof(freeShippingTranslation) != 'undefined') - content += '' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeShippingTranslation) + ''; + if (typeof(freeProductTranslation) != 'undefined') + content += '' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeProductTranslation) + ''; content += ''; if (this.hasAttributes) content += '
-
+

{l s='Already registered?'}

diff --git a/themes/default/mobile/best-sales.tpl b/themes/default/mobile/best-sales.tpl index d8dba671c..438676a91 100644 --- a/themes/default/mobile/best-sales.tpl +++ b/themes/default/mobile/best-sales.tpl @@ -46,7 +46,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/category.tpl b/themes/default/mobile/category.tpl index 2b86926c4..90dc09310 100644 --- a/themes/default/mobile/category.tpl +++ b/themes/default/mobile/category.tpl @@ -45,13 +45,13 @@

{$category->description}

{/if} -
+
{/if}
{include file="./category-product-sort.tpl" container_class="container-sort"}

{include file="$tpl_dir./category-count.tpl"}

-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} diff --git a/themes/default/mobile/contact-form.tpl b/themes/default/mobile/contact-form.tpl index 14b6cc043..6c435356a 100644 --- a/themes/default/mobile/contact-form.tpl +++ b/themes/default/mobile/contact-form.tpl @@ -44,7 +44,7 @@ {/foreach} -

+

 

{foreach from=$contacts item=contact}
{if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} - + {elseif !isset($customerThread.id_order) && !isset($isLogged)} {elseif $customerThread.id_order > 0} @@ -75,8 +79,15 @@ {/if} {if isset($isLogged) && $isLogged}
+ {if !isset($customerThread.id_product)} - + {foreach from=$orderedProductList key=id_order item=products name=products} + + {/foreach} {elseif $customerThread.id_product > 0} {/if} diff --git a/themes/default/mobile/header.tpl b/themes/default/mobile/header.tpl index 973b3582c..34752abba 100644 --- a/themes/default/mobile/header.tpl +++ b/themes/default/mobile/header.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} - + {$meta_title|escape:'htmlall':'UTF-8'} {**} diff --git a/themes/default/mobile/manufacturer.tpl b/themes/default/mobile/manufacturer.tpl index 3143b61a5..5233a48ed 100644 --- a/themes/default/mobile/manufacturer.tpl +++ b/themes/default/mobile/manufacturer.tpl @@ -48,7 +48,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/new-products.tpl b/themes/default/mobile/new-products.tpl index 81b9aaa9c..4d5950126 100644 --- a/themes/default/mobile/new-products.tpl +++ b/themes/default/mobile/new-products.tpl @@ -31,7 +31,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/order-detail.tpl b/themes/default/mobile/order-detail.tpl index c341b7461..558854be4 100644 --- a/themes/default/mobile/order-detail.tpl +++ b/themes/default/mobile/order-detail.tpl @@ -117,7 +117,7 @@ {elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}

{$address_invoice->phone_mobile|escape:'htmlall':'UTF-8'}

{else} {assign var=address_words value=" "|explode:$field_item} -

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$invoiceAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}{/foreach}

+

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}{/foreach}

{/if} {/foreach} @@ -130,7 +130,7 @@ {elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}

{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}

{else} {assign var=address_words value=" "|explode:$field_item} -

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$deliveryAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}{/foreach}

+

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}{/foreach}

{/if} {/foreach} @@ -174,7 +174,7 @@ {if $priceDisplay && $use_tax}
  • {l s='Total products (tax excl.)'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency} - +
  • {/if}
  • {l s='Total products'} {if $use_tax}{l s='(tax incl.)'}{/if}: {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency} diff --git a/themes/default/mobile/pages-list.tpl b/themes/default/mobile/pages-list.tpl index 3f6148c5a..8513b4714 100644 --- a/themes/default/mobile/pages-list.tpl +++ b/themes/default/mobile/pages-list.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} -
    +

    {l s='Sitemap'}

      {if $controller_name != 'index'}
    • Accueil
    • {/if} diff --git a/themes/default/mobile/prices-drop.tpl b/themes/default/mobile/prices-drop.tpl index 0404bea93..e331a6054 100644 --- a/themes/default/mobile/prices-drop.tpl +++ b/themes/default/mobile/prices-drop.tpl @@ -31,7 +31,7 @@
      {include file="./category-product-sort.tpl" container_class="container-sort"}
      -
      +
      {include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/product-attributes.tpl b/themes/default/mobile/product-attributes.tpl index 1f45f4929..ec6672b0c 100644 --- a/themes/default/mobile/product-attributes.tpl +++ b/themes/default/mobile/product-attributes.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} {if isset($groups)} -
      +
      {foreach from=$groups key=id_attribute_group item=group} diff --git a/themes/default/mobile/product-desc-features.tpl b/themes/default/mobile/product-desc-features.tpl index f81f3fd88..8692a9a3d 100644 --- a/themes/default/mobile/product-desc-features.tpl +++ b/themes/default/mobile/product-desc-features.tpl @@ -5,7 +5,7 @@ {if isset($product) && $product->description}

      {l s='More info'}

      -

      {$product->description}

      +
      {$product->description}
      {/if} diff --git a/themes/default/mobile/product.tpl b/themes/default/mobile/product.tpl index 1e22cd482..e9b88fd95 100644 --- a/themes/default/mobile/product.tpl +++ b/themes/default/mobile/product.tpl @@ -119,10 +119,10 @@
      {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} -
      +
      {include file="./product-prices.tpl"} {else} -
      +
      {/if}
      {hook h="displayMobileAddToCartTop"} @@ -147,13 +147,13 @@ {include file="./product-quantity-discount.tpl"} {* ================================== *} -
      +
      {include file="./product-desc-features.tpl"} {if isset($packItems) && $packItems|@count > 0} -
      +

      {l s='Pack content'}

      {include file="./category-product-list.tpl" products=$packItems} diff --git a/themes/default/mobile/search.tpl b/themes/default/mobile/search.tpl index 61ba394e0..f46bffa03 100644 --- a/themes/default/mobile/search.tpl +++ b/themes/default/mobile/search.tpl @@ -42,7 +42,7 @@
      {/if} -
      +
      {if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)} {include file="./pagination.tpl"} {/if} diff --git a/themes/default/mobile/sitemap.tpl b/themes/default/mobile/sitemap.tpl index 1b816ab10..7b0f17401 100644 --- a/themes/default/mobile/sitemap.tpl +++ b/themes/default/mobile/sitemap.tpl @@ -25,7 +25,7 @@
      {hook h="displayMobileTopSiteMap"}
      -
      +
      {if isset($categoriesTree.children)}

      {l s='Our offers'}

      @@ -54,7 +54,7 @@
    {/if} -
    +

    {l s='Sitemap'}

      {if $controller_name != 'index'}
    • {l s='Home'}
    • {/if} diff --git a/themes/default/mobile/supplier.tpl b/themes/default/mobile/supplier.tpl index 60a22525c..1526f58c0 100644 --- a/themes/default/mobile/supplier.tpl +++ b/themes/default/mobile/supplier.tpl @@ -47,7 +47,7 @@
      {include file="./category-product-sort.tpl" container_class="container-sort"}
      -
      +
      {include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/modules/blockcart/blockcart.tpl b/themes/default/modules/blockcart/blockcart.tpl index 15b222a77..287510b41 100644 --- a/themes/default/modules/blockcart/blockcart.tpl +++ b/themes/default/modules/blockcart/blockcart.tpl @@ -116,27 +116,24 @@ var delete_txt = '{l s='Delete' mod='blockcart' js=1}'; {/if}

      {l s='No products' mod='blockcart'}

      - {if $discounts|@count > 0} - +
      - {foreach from=$discounts item=discount} - {if $discount.value_real > 0} - - - - - - +{foreach from=$discounts item=discount} +{if $discount.value_real > 0} + + + + + + +{/if} +{/foreach} - - {/if} - +

      {$shipping_cost} {l s='Shipping' mod='blockcart'} diff --git a/themes/default/modules/blocknewsletter/blocknewsletter.tpl b/themes/default/modules/blocknewsletter/blocknewsletter.tpl index 1a353a62e..b1fc6ca97 100644 --- a/themes/default/modules/blocknewsletter/blocknewsletter.tpl +++ b/themes/default/modules/blocknewsletter/blocknewsletter.tpl @@ -38,10 +38,6 @@ onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter' js=1}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter' js=1}';" class="inputNew" /> -

      diff --git a/themes/default/order-carrier.tpl b/themes/default/order-carrier.tpl index 25e164044..a8b9c2f2f 100644 --- a/themes/default/order-carrier.tpl +++ b/themes/default/order-carrier.tpl @@ -170,7 +170,7 @@
      - {if $option.total_price_with_tax && !$free_shipping} + {if $option.total_price_with_tax && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))} {if $use_taxes == 1} {convertPrice price=$option.total_price_with_tax} {l s='(tax incl.)'} {else} diff --git a/themes/default/product.tpl b/themes/default/product.tpl index b7695b1e7..905f8f50a 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -48,6 +48,8 @@ var allowBuyWhenOutOfStock = {if $allow_oosp == 1}true{else}false{/if}; var availableNowValue = '{$product->available_now|escape:'quotes':'UTF-8'}'; var availableLaterValue = '{$product->available_later|escape:'quotes':'UTF-8'}'; var productPriceTaxExcluded = {$product->getPriceWithoutReduct(true)|default:'null'} - {$product->ecotax}; +var productBasePriceTaxExcluded = {$product->base_price} - {$product->ecotax}; + var reduction_percent = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'}{$product->specificPrice.reduction*100}{else}0{/if}; var reduction_price = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'amount'}{$product->specificPrice.reduction|floatval}{else}0{/if}; var specific_price = {if $product->specificPrice AND $product->specificPrice.price}{$product->specificPrice.price}{else}0{/if}; @@ -132,6 +134,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving specific_price_combination['reduction_price'] = {if $combination.specific_price AND $combination.specific_price.reduction AND $combination.specific_price.reduction_type == 'amount'}{$combination.specific_price.reduction}{else}0{/if}; specific_price_combination['price'] = {if $combination.specific_price AND $combination.specific_price.price}{$combination.specific_price.price}{else}0{/if}; specific_price_combination['reduction_type'] = '{if $combination.specific_price}{$combination.specific_price.reduction_type}{/if}'; + specific_price_combination['id_product_attribute'] = {if $combination.specific_price}{$combination.specific_price.id_product_attribute|intval}{else}0{/if}; available_date['date'] = '{$combination.available_date}'; available_date['date_formatted'] = '{dateFormat date=$combination.available_date full=false}'; addCombination({$idCombination|intval}, new Array({$combination.list}), {$combination.quantity}, {$combination.price}, {$combination.ecotax}, {$combination.id_image}, '{$combination.reference|addslashes}', {$combination.unit_impact}, {$combination.minimal_quantity}, available_date, specific_price_combination); @@ -180,7 +183,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
      {if $have_image} - {$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')} + {$product->name|escape:'htmlall':'UTF-8'} {l s='Maximize'} {else} @@ -400,14 +403,14 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {/if}

      specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}

      -

      specificPrice OR $product->specificPrice.reduction_type != 'amount' && $product->specificPrice.reduction|intval ==0} style="display:none"{/if}> +

      specificPrice OR $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|intval ==0} style="display:none"{/if}> {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if}

      - {if $product->specificPrice AND $product->specificPrice.reduction} + {if $product->specificPrice AND $product->specificPrice.reduction && $product->specificPrice.reduction > 0}

      {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} diff --git a/tools/profiling/Controller.php b/tools/profiling/Controller.php index 1b55dd0dd..16aec04d7 100644 --- a/tools/profiling/Controller.php +++ b/tools/profiling/Controller.php @@ -228,7 +228,7 @@ abstract class Controller extends ControllerCore if ($this->ajax) { $action = Tools::getValue('action'); - if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action))) + if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action))) $this->{'displayAjax'.$action}(); elseif (method_exists($this, 'displayAjax')) $this->displayAjax();