[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

@@ -43,7 +43,8 @@
<button class="btn btn-primary">
<i class="icon-shopping-cart"></i> Add to Cart</button>
</div>
<div id="item-update-cart" class="input-group col-lg-4" style="display: none;">
<div id="item-update-cart" class="input-group col-lg-4" style="display: none;
padding-left: 0px; padding-right: 0px;">
<input type="text">
<div class="input-group-btn">
<button class="btn btn-primary">

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);