Merge pull request #1138 from anandpdoshi/hotfix
Shopping cart cookie fixes
This commit is contained in:
commit
21ce1282ca
@ -310,7 +310,7 @@ def set_price_list_and_rate(quotation, cart_settings, billing_territory):
|
|||||||
quotation.run_method("set_price_list_and_item_details")
|
quotation.run_method("set_price_list_and_item_details")
|
||||||
|
|
||||||
# set it in cookies for using in product page
|
# set it in cookies for using in product page
|
||||||
webnotes.cookies[b"selling_price_list"] = quotation.doc.selling_price_list
|
webnotes.local._response.set_cookie("selling_price_list", quotation.doc.selling_price_list)
|
||||||
|
|
||||||
def set_taxes(quotation, cart_settings, billing_territory):
|
def set_taxes(quotation, cart_settings, billing_territory):
|
||||||
"""set taxes based on billing territory"""
|
"""set taxes based on billing territory"""
|
||||||
|
@ -16,7 +16,7 @@ def get_product_info(item_code):
|
|||||||
|
|
||||||
cart_quotation = _get_cart_quotation()
|
cart_quotation = _get_cart_quotation()
|
||||||
|
|
||||||
price_list = webnotes.cookies.get("selling_price_list").value
|
price_list = webnotes.local.request.cookies.get("selling_price_list")
|
||||||
|
|
||||||
warehouse = webnotes.conn.get_value("Item", item_code, "website_warehouse")
|
warehouse = webnotes.conn.get_value("Item", item_code, "website_warehouse")
|
||||||
if warehouse:
|
if warehouse:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user