mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user