[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

@@ -15,6 +15,9 @@ class DocType(DocListController):
self.validate_tax_masters()
self.validate_exchange_rates_exist()
def on_update(self):
webnotes.conn.set_default("shopping_cart_enabled", self.doc.fields.get("enabled") or 0)
def validate_overlapping_territories(self, parentfield, fieldname):
# for displaying message
doctype = self.meta.get_field(parentfield).options