mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
chore: Drive E-commerce via Website Item
- Removed Shopping Cart Settings - Portal fully driven via E Commerce Settings - All Item listing querying will happen via ProductQuery engine only - Product Listing via Website Items - removed redundant code - Moved all website logic from Item to Website Item
This commit is contained in:
@@ -33,7 +33,7 @@ def create_fiscal_year_and_company(args):
|
||||
def enable_shopping_cart(args):
|
||||
# Needs price_lists
|
||||
frappe.get_doc({
|
||||
"doctype": "Shopping Cart Settings",
|
||||
"doctype": "E Commerce Settings",
|
||||
"enabled": 1,
|
||||
'company': args.get('company_name') ,
|
||||
'price_list': frappe.db.get_value("Price List", {"selling": 1}),
|
||||
|
||||
@@ -534,7 +534,7 @@ def create_bank_account(args):
|
||||
pass
|
||||
|
||||
def update_shopping_cart_settings(args):
|
||||
shopping_cart = frappe.get_doc("Shopping Cart Settings")
|
||||
shopping_cart = frappe.get_doc("E Commerce Settings")
|
||||
shopping_cart.update({
|
||||
"enabled": 1,
|
||||
'company': args.company_name,
|
||||
|
||||
Reference in New Issue
Block a user