chore: Patches for Website Item

- Patch to make website item from item
- Patch to move Products and Shopping Cart Settings into E Commerce Settings
- Patch to move products in Homepage from Item to Website Item
- Minor cleanup, replacing/removing references to Item website fields (obsolete)
This commit is contained in:
marination
2021-02-23 14:06:38 +05:30
parent 333d08f459
commit d93e3a32da
12 changed files with 143 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ def get_context(context):
homepage = frappe.get_doc('Homepage')
for item in homepage.products:
route = frappe.db.get_value('Item', item.item_code, 'route')
route = frappe.db.get_value('Website Item', {"item_code": item.item_code}, 'route')
if route:
item.route = '/' + route