Merge pull request #29733 from dj12djdjs/fix-user-unique-cart

fix(e-commerce): Unique Shopping Cart Per Logged In User
This commit is contained in:
Marica
2022-02-25 16:35:14 +05:30
committed by GitHub
4 changed files with 32 additions and 13 deletions

View File

@@ -66,6 +66,20 @@ def create_test_contact_and_address():
contact.add_phone("+91 0000000000", is_primary_phone=True)
contact.insert()
contact_two = frappe.get_doc({
"doctype": 'Contact',
"first_name": "_Test Contact 2 for _Test Customer",
"links": [
{
"link_doctype": "Customer",
"link_name": "_Test Customer"
}
]
})
contact_two.add_email("test_contact_two_customer@example.com", is_primary=True)
contact_two.add_phone("+92 0000000000", is_primary_phone=True)
contact_two.insert()
@contextmanager
def change_settings(doctype, settings_dict):