diff --git a/themes/default/history.tpl b/themes/default/history.tpl index b53e655a7..7f3d368e5 100644 --- a/themes/default/history.tpl +++ b/themes/default/history.tpl @@ -58,7 +58,7 @@ {if isset($order.invoice) && $order.invoice && isset($order.virtual) && $order.virtual}{l s='Products to download'}{/if} - {l s='#'}{$order.id_order|string_format:"%06d"} + {l s='#'}{$order.id_order|string_format:"%06d"} {dateFormat date=$order.date_add full=0} {displayPrice price=$order.total_paid currency=$order.id_currency no_utf8=false convert=false} @@ -71,7 +71,7 @@ {else}-{/if} - {l s='details'} + {l s='details'} {if isset($opc) && $opc} {else} diff --git a/themes/default/js/history.js b/themes/default/js/history.js index d83c90004..9ddb99db1 100644 --- a/themes/default/js/history.js +++ b/themes/default/js/history.js @@ -27,14 +27,8 @@ //show the order-details with ajax function showOrder(mode, var_content, file) { - var url; - if (file.match(/^https?:\/\//)) - url = file; - else - url = baseDir + file + '.php'; - $.get( - url, + file, ((mode == 1) ? {'id_order': var_content, 'ajax': true} : {'id_order_return': var_content, 'ajax': true}), function(data) { @@ -87,7 +81,8 @@ function showOrder(mode, var_content, file) }); } -function updateOrderLineDisplay(domCheckbox){ +function updateOrderLineDisplay(domCheckbox) +{ var lineQuantitySpan = $(domCheckbox).parent().parent().find('span.order_qte_span'); var lineQuantityInput = $(domCheckbox).parent().parent().find('input.order_qte_input'); if($(domCheckbox).is(':checked')) @@ -104,14 +99,15 @@ function updateOrderLineDisplay(domCheckbox){ } //send a message in relation to the order with ajax -function sendOrderMessage (){ +function sendOrderMessage () +{ paramString = "ajax=true"; $('form#sendOrderMessage').find('input, textarea').each(function(){ paramString += '&' + $(this).attr('name') + '=' + encodeURI($(this).val()); }); $.ajax({ type: "POST", - url: baseDir + "order-detail.php", + url: baseDir + "index.php?controller=order-detail", data: paramString, success: function (msg){ $('#block-order-detail').fadeOut('slow', function() { diff --git a/themes/default/order-detail.tpl b/themes/default/order-detail.tpl index 9e37ad3a9..ffe81a5ac 100644 --- a/themes/default/order-detail.tpl +++ b/themes/default/order-detail.tpl @@ -409,7 +409,7 @@ {/if} -
+

{l s='Add a message:'}

{l s='If you would like to add a comment about your order, please write it below.'}

diff --git a/themes/default/order-slip.tpl b/themes/default/order-slip.tpl index bb5b05dcb..f24dd781c 100644 --- a/themes/default/order-slip.tpl +++ b/themes/default/order-slip.tpl @@ -50,7 +50,7 @@ {foreach from=$ordersSlip item=slip name=myLoop} {l s='#'}{$slip.id_order_slip|string_format:"%06d"} - {l s='#'}{$slip.id_order|string_format:"%06d"} + {l s='#'}{$slip.id_order|string_format:"%06d"} {dateFormat date=$slip.date_add full=0} {l s='Order slip'} {l s='#'}{$slip.id_order_slip|string_format: diff --git a/themes/prestashop/history.tpl b/themes/prestashop/history.tpl index e81fcec04..e51b13be6 100644 --- a/themes/prestashop/history.tpl +++ b/themes/prestashop/history.tpl @@ -52,7 +52,7 @@ {if isset($order.invoice) && $order.invoice && isset($order.virtual) && $order.virtual}{l s='Products to download'}{/if} - {l s='#'}{$order.id_order|string_format:"%06d"} + {l s='#'}{$order.id_order|string_format:"%06d"} {dateFormat date=$order.date_add full=0} {displayPrice price=$order.total_paid currency=$order.id_currency no_utf8=false convert=false} @@ -65,7 +65,7 @@ {else}-{/if} - {l s='details'} + {l s='details'} {if isset($opc) && $opc} {else} diff --git a/themes/prestashop/js/history.js b/themes/prestashop/js/history.js index 39921e96e..240620a33 100644 --- a/themes/prestashop/js/history.js +++ b/themes/prestashop/js/history.js @@ -27,14 +27,8 @@ //show the order-details with ajax function showOrder(mode, var_content, file) { - var url; - if (file.match(/^https?:\/\//)) - url = file; - else - url = baseDir + file + '.php'; - $.get( - url, + file, ((mode == 1) ? {'id_order': var_content, 'ajax': true} : {'id_order_return': var_content, 'ajax': true}), function(data) { diff --git a/themes/prestashop/order-slip.tpl b/themes/prestashop/order-slip.tpl index 064d77d35..bf7960f06 100644 --- a/themes/prestashop/order-slip.tpl +++ b/themes/prestashop/order-slip.tpl @@ -44,7 +44,7 @@ {foreach from=$ordersSlip item=slip name=myLoop} {l s='#'}{$slip.id_order_slip|string_format:"%06d"} - {l s='#'}{$slip.id_order|string_format:"%06d"} + {l s='#'}{$slip.id_order|string_format:"%06d"} {dateFormat date=$slip.date_add full=0} {l s='Order slip'} {l s='#'}{$slip.id_order_slip|string_format: