[webshop] Place Order - submits Quotation, creates Customer if required, creates and submits Sales Order
diff --git a/public/js/website_utils.js b/public/js/website_utils.js
index e714514..519d630 100644
--- a/public/js/website_utils.js
+++ b/public/js/website_utils.js
@@ -95,6 +95,8 @@
$("#user-full-name").text(full_name);
}
+ wn.cart.set_cart_count();
+
$("#user-tools a").tooltip({"placement":"bottom"});
$("#user-tools-post-login a").tooltip({"placement":"bottom"});
});
@@ -212,8 +214,16 @@
callback: function(r) {
if(opts.callback)
opts.callback(r);
+
+ wn.cart.set_cart_count();
}
});
}
},
+
+ set_cart_count: function() {
+ var cart_count = getCookie("cart_count");
+ if(cart_count)
+ $(".cart-count").html("( "+ cart_count +" )")
+ }
});
\ No newline at end of file