[-] BO: Fix PSFV-177 backoffice order message
This commit is contained in:
@@ -201,6 +201,28 @@
|
||||
var product = $(this).attr('rel').split('_');
|
||||
updateProductPrice(product[0], product[1], $(this).val());
|
||||
});
|
||||
$('#order_message').live('change', function(e) {
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: "{$link->getAdminLink('AdminCarts')}",
|
||||
async: true,
|
||||
dataType: "json",
|
||||
data : {
|
||||
ajax: "1",
|
||||
token: "{getAdminToken tab='AdminCarts'}",
|
||||
tab: "AdminCarts",
|
||||
action: "updateOrderMessage",
|
||||
id_cart: id_cart,
|
||||
id_customer: id_customer,
|
||||
message: $(this).val()
|
||||
},
|
||||
success : function(res)
|
||||
{
|
||||
displaySummary(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
/*$('.fancybox').live('click', function(e) {
|
||||
$(this).fancybox().trigger('click');
|
||||
return false;
|
||||
@@ -611,6 +633,7 @@
|
||||
$('#id_lang option[value="'+id_lang+'"]').attr('selected', 'selected');
|
||||
$('#send_email_to_customer').attr('rel', jsonSummary.link_order);
|
||||
$('#go_order_process').attr('href', jsonSummary.link_order);
|
||||
$('#order_message').val(jsonSummary.order_message);
|
||||
resetBind();
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ jQuery(document).ready(Customer.init);
|
||||
</span>
|
||||
{if $tax_exclude_taxe_option}
|
||||
<span style="margin-left:10px; color:red;">{l s='Taxes are currently disabled'}</span> (<b><a href="{$link->getAdminLink('AdminTaxes')}">{l s='Tax options'}</a></b>)
|
||||
<input type="hidden" value="{$product->id_tax_rules_group}" name="id_tax_rules_group" />
|
||||
<input type="hidden" value="{$product->getIdTaxRulesGroup()}" name="id_tax_rules_group" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user