From dfdededcf05f0199a0f04cf7914f5a1c6f66579e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 16 Dec 2015 12:57:02 +0530 Subject: [PATCH] [fix] product search limit = 12 instead of 10, since we show it in a grid of 12 --- erpnext/templates/pages/product_search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/templates/pages/product_search.py b/erpnext/templates/pages/product_search.py index dc2099d53c..95e3a55d4d 100644 --- a/erpnext/templates/pages/product_search.py +++ b/erpnext/templates/pages/product_search.py @@ -10,7 +10,9 @@ no_cache = 1 no_sitemap = 1 @frappe.whitelist(allow_guest=True) -def get_product_list(search=None, start=0, limit=10): +def get_product_list(search=None, start=0, limit=12): + # limit = 12 because we show 12 items in the grid view + # base query query = """select name, item_name, page_name, website_image, thumbnail, item_group, web_long_description as website_description, parent_website_route