feat: update item group website slider

This commit is contained in:
Shivam Mishra
2020-12-30 13:00:35 +05:30
parent 355943c3a0
commit 31a651365d
9 changed files with 55 additions and 12 deletions

View File

@@ -73,7 +73,10 @@ class ProductFiltersBuilder:
if selected_attributes:
valid_attributes.append(
_dict(item_attribute_values=selected_attributes)
_dict(
item_attribute_values=selected_attributes,
name=attr_doc.name
)
)
return valid_attributes

View File

@@ -1,7 +1,6 @@
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
class ProductQuery:

View File

@@ -37,7 +37,7 @@
{%- endfor -%}
</ol>
{%- endif -%}
<div id="{{ slider_name }}423243" class="carousel-inner">
<div class="carousel-inner {{ resolve_class({'rounded-carousel': rounded }) }}">
{%- for index in ['1', '2', '3', '4', '5'] -%}
{%- set image = values['slide_' + index + '_image'] -%}
{%- set title = values['slide_' + index + '_title'] -%}