[enhancement] add variants in website

This commit is contained in:
Rushabh Mehta
2015-10-05 16:27:52 +05:30
parent 9cbf6b1b22
commit 80d2a55342
8 changed files with 763 additions and 675 deletions

View File

@@ -14,7 +14,7 @@ def get_product_list(search=None, start=0, limit=10):
# base query
query = """select name, item_name, page_name, website_image, item_group,
web_long_description as website_description, parent_website_route
from `tabItem` where show_in_website = 1"""
from `tabItem` where show_in_website = 1 and (variant_of is null or variant_of = '')"""
# search term condition
if search: