mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
chore: Cleanup Query Engine and Product query API
- Resolved merge conflicts in item_group.py - Separate api.py file for product listing backend api - Brought back ORM in query engine, handled missing cases (website item groups, etc) - Return results from API in a descriptive manner, helps keep sanity in JS - On toggling views store view preference in localStorage
This commit is contained in:
@@ -5,7 +5,7 @@ $(() => {
|
||||
let is_item_group_page = $(".item-group-content").data("item-group");
|
||||
this.item_group = is_item_group_page || null;
|
||||
|
||||
let view_type = "List View";
|
||||
let view_type = localStorage.getItem("product_view") || "List View";
|
||||
|
||||
// Render Product Views, Filters & Search
|
||||
frappe.require('/assets/js/e-commerce.min.js', function() {
|
||||
|
||||
Reference in New Issue
Block a user