diff --git a/admin-dev/themes/default/template/controllers/cart_rules/form.js b/admin-dev/themes/default/template/controllers/cart_rules/form.js
index bad35e93d..ff7c38d9a 100644
--- a/admin-dev/themes/default/template/controllers/cart_rules/form.js
+++ b/admin-dev/themes/default/template/controllers/cart_rules/form.js
@@ -84,6 +84,13 @@ function addCartRuleOption(item)
function updateProductRuleShortDescription(item)
{
+ /******* For IE: put a product in condition on cart rules *******/
+ if(typeof String.prototype.trim !== 'function') {
+ String.prototype.trim = function() {
+ return this.replace(/^\s+|\s+$/g, '');
+ }
+ }
+
var id1 = $(item).attr('id').replace('_add', '').replace('_remove', '');
var id2 = id1.replace('_select', '');
var length = $('#' + id1 + '_2 option').length;
diff --git a/admin-dev/themes/default/template/controllers/login/content.tpl b/admin-dev/themes/default/template/controllers/login/content.tpl
index b1cfff216..784fdec19 100755
--- a/admin-dev/themes/default/template/controllers/login/content.tpl
+++ b/admin-dev/themes/default/template/controllers/login/content.tpl
@@ -22,91 +22,79 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
-
-
- {if isset($errors)}
-
{if $nbErrors > 1}{l s='There are %d errors.' sprintf=$nbErrors}{else}{l s='There is %d error.' sprintf=$nbErrors}{/if}
-
- {foreach from=$errors item="error"}
- - {$error}
- {/foreach}
-
- {/if}
-
-
- {if isset($warningSslMessage)}
-
- {$warningSslMessage}
-
- {/if}
-
-
{$shop_name}
- {if !isset($wrong_folder_name) && !isset($wrong_install_name)}
-
-
-
- {else}
-
-
{l s='For security reasons, you cannot connect to the Back Office until after you have:'}
-
- {if isset($wrong_install_name) && $wrong_install_name == true}- {l s='deleted the /install folder'}
{/if}
- {if isset($wrong_folder_name) && $wrong_folder_name == true}- {l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}
{/if}
-
- {if isset($wrong_folder_name) && $wrong_folder_name == true}
{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}
{/if}
-
- {/if}
-
-
-
+
+
+
+{if isset($errors)}
+
{if $nbErrors > 1}{l s='There are %d errors.' sprintf=$nbErrors}{else}{l s='There is %d error.' sprintf=$nbErrors}{/if}
+
+ {foreach from=$errors item="error"}
+ - {$error}
+ {/foreach}
+
+{/if}
+
+
+{if isset($warningSslMessage)}
+
{$warningSslMessage}
+{/if}
+
+
{$shop_name}
+{if !isset($wrong_folder_name) && !isset($wrong_install_name)}
+
+
+{else}
+
+
{l s='For security reasons, you cannot connect to the Back Office until after you have:'}
+
+ {if isset($wrong_install_name) && $wrong_install_name == true}- {l s='deleted the /install folder'}
{/if}
+ {if isset($wrong_folder_name) && $wrong_folder_name == true}- {l s='renamed the /admin folder (e.g. %s)' sprintf=$randomNb}
{/if}
+
+
{l s='Please then access this page by the new URL (e.g. %s)' sprintf=$adminUrl}
+
+{/if}
+
+
+
\ No newline at end of file
diff --git a/admin-dev/themes/default/template/controllers/orders/_customized_data.tpl b/admin-dev/themes/default/template/controllers/orders/_customized_data.tpl
index d6ca1cf6f..7e5b10b7e 100755
--- a/admin-dev/themes/default/template/controllers/orders/_customized_data.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_customized_data.tpl
@@ -22,22 +22,23 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
-{if $product.customizedDatas}
-
-
- | {if isset($product.image) && $product.image->id}{$product.image_tag}{else}--{/if} |
+{if $product['customizedDatas']}
+
+ |
+
+ {if isset($product['image']) && $product['image']->id|intval}{$product['image_tag']}{else}--{/if} |
-
+
{$product['product_name']} - {l s='Customized'}
{if ($product['product_reference'])}{l s='Ref:'} {$product['product_reference']} {/if}
{if ($product['product_supplier_reference'])}{l s='Ref Supplier:'} {$product['product_supplier_reference']}{/if}
|
- {displayPrice price=$product['product_price_wt'] currency=$currency->id}
+ {displayPrice price=$product['product_price_wt'] currency=$currency->id|intval}
{if $can_edit}
-
+
{if $currency->sign % 2}{$currency->sign}{/if} {if !($currency->sign % 2)}{$currency->sign}{/if} {l s='tax excl.'}
{if $currency->sign % 2}{$currency->sign}{/if} {if !($currency->sign % 2)}{$currency->sign}{/if} {l s='tax incl.'}
@@ -49,32 +50,37 @@
{if $stock_management} | - | {/if}
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
- {displayPrice price=Tools::ps_round($product['product_price'] * $product['customizationQuantityTotal'], 2) currency=$currency->id}
+ {displayPrice price=Tools::ps_round($product['product_price'] * $product['customizationQuantityTotal'], 2) currency=$currency->id|intval}
{else}
- {displayPrice price=Tools::ps_round($product['product_price_wt'] * $product['customizationQuantityTotal'], 2) currency=$currency->id}
+ {displayPrice price=Tools::ps_round($product['product_price_wt'] * $product['customizationQuantityTotal'], 2) currency=$currency->id|intval}
{/if}
|
+
+
+ |
|
|
-
-
-
-
-
- |
+ {if ($can_edit && !$order->hasBeenDelivered())}
+
+
+
+
+
+ |
+ {/if}
- {foreach $product.customizedDatas as $customizationPerAddress}
+ {foreach $product['customizedDatas'] as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}
-
-
+
+
{foreach $customization.datas as $type => $datas}
{if ($type == Product::CUSTOMIZE_FILE)}
{foreach from=$datas item=data}
-
{if $data['name']}{$data['name']}{else}{l s='Picture #'}{$data@iteration}{/if}{l s=':'}
-
+
{/foreach}
@@ -93,7 +99,7 @@
{$customization['quantity']}
{if $can_edit}
-
+
{/if}
|
@@ -104,36 +110,38 @@
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
- {displayPrice price=Tools::ps_round($product['product_price'] * $customization['quantity'], 2) currency=$currency->id}
+ {displayPrice price=Tools::ps_round($product['product_price'] * $customization['quantity'], 2) currency=$currency->id|intval}
{else}
- {displayPrice price=Tools::ps_round($product['product_price_wt'] * $customization['quantity'], 2) currency=$currency->id}
+ {displayPrice price=Tools::ps_round($product['product_price_wt'] * $customization['quantity'], 2) currency=$currency->id|intval}
{/if}
|
-
-
+
+
{if ((!$order->hasBeenDelivered() OR Configuration::get('PS_ORDER_RETURN')) AND (int)($customization['quantity_returned']) < (int)($customization['quantity']))}
- = $product['product_quantity'])}disabled="disabled" {/if}/>
+ = $product['product_quantity'])}disabled="disabled" {/if}/>
{else}
--
{/if}
|
{if ($customization['quantity_returned'] + $customization['quantity_refunded'] >= $customization['quantity'])}
-
+
{elseif (!$order->hasBeenDelivered() OR Configuration::get('PS_ORDER_RETURN'))}
- 0/{$customization['quantity']-$customization['quantity_refunded']}
+ 0/{$customization['quantity']-$customization['quantity_refunded']}
{/if}
|
- {l s='Quantity:'}
+ {l s='Quantity:'}
0/{$customization['quantity']-$customization['quantity_refunded']}
- {l s='Amount:'} {$currency->prefix}{$currency->suffix}
- |
-
+ {l s='Amount:'} {$currency->prefix}{$currency->suffix}
|
+ {if ($can_edit && !$order->hasBeenDelivered())}
+ |
+ |
+ {/if}
|
{/foreach}
{/foreach}
diff --git a/admin-dev/themes/default/template/footer.tpl b/admin-dev/themes/default/template/footer.tpl
index 425e970fe..8caf2c64a 100644
--- a/admin-dev/themes/default/template/footer.tpl
+++ b/admin-dev/themes/default/template/footer.tpl
@@ -22,33 +22,31 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
-
-
+
+
+
+
+{if $display_footer}
+{hook h="displayBackOfficeFooter"}
+
-
- {* ajaxBox allows*}
-
- {/if}
-
-