[webshop] [cart] show prices based on geoip of guest user

This commit is contained in:
Anand Doshi
2013-07-08 18:50:33 +05:30
parent 11eda08cd5
commit 2862c9e1df
5 changed files with 29 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ $.extend(wn.cart, {
var shipping_rule_added = false;
var taxes_exist = false;
var shipping_rule_labels = $.map(out.shipping_rules, function(rule) { return rule[1]; });
var shipping_rule_labels = $.map(out.shipping_rules || [], function(rule) { return rule[1]; });
$.each(doclist, function(i, doc) {
if(doc.doctype === "Quotation Item") {
wn.cart.render_item_row($cart_items, doc);