[+] FO : Messages in order detail are now stored in the Customer Service (SAV)

This commit is contained in:
vAugagneur
2011-09-13 07:18:04 +00:00
parent e2bb3d430a
commit ae697852cf
6 changed files with 67 additions and 15 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ function updateOrderLineDisplay(domCheckbox){
//send a message in relation to the order with ajax
function sendOrderMessage (){
paramString = "controller=order-detail&ajax=true";
$('form#sendOrderMessage').find('input, textarea').each(function(){
$('form#sendOrderMessage').find('input, textarea, select').each(function(){
paramString += '&' + $(this).attr('name') + '=' + encodeURI($(this).val());
});
$.ajax({
+9
View File
@@ -356,6 +356,15 @@
<form action="{$link->getPageLink('order-detail', true)}" method="post" class="std" id="sendOrderMessage">
<p class="bold">{l s='Add a message:'}</p>
<p>{l s='If you would like to add a comment about your order, please write it below.'}</p>
<p>
<label for="id_product">{l s='Product'}</label>
<select name="id_product" style="width:300px;">
<option value="0">{l s='-- Choose --'}</option>
{foreach from=$products item=product name=products}
<option value="{$product.product_id}">{$product.product_name}</option>
{/foreach}
</select>
</p>
<p class="textarea">
<textarea cols="67" rows="3" name="msgText"></textarea>
</p>