diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl
index 4cd8ae537..41f01ce49 100755
--- a/admin-dev/themes/default/template/controllers/orders/form.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/form.tpl
@@ -635,7 +635,7 @@
}
}
- function updateCartProducts(products)
+ function updateCartProducts(products, gifts)
{
var cart_content = '';
$.each(products, function() {
@@ -646,6 +646,10 @@
cart_content += '
';
cart_content += '
'+this.total+' | ';
});
+ $.each(gifts, function() {
+ cart_content += ' | '+this.name+' '+this.attributes_small+' | '+this.reference+' | ';
+ cart_content += '{l s='Gift !'} | '+this.cart_quantity+' | {l s='Gift !'} |
';
+ });
$('#customer_cart tbody').html(cart_content);
}
@@ -672,7 +676,7 @@
function displaySummary(jsonSummary)
{
- updateCartProducts(jsonSummary.summary.products);
+ updateCartProducts(jsonSummary.summary.products, jsonSummary.summary.gift_products);
updateCartVouchers(jsonSummary.summary.discounts);
updateAddressesList(jsonSummary.addresses, jsonSummary.cart.id_address_delivery, jsonSummary.cart.id_address_invoice);