\ No newline at end of file
+
diff --git a/webshop/webshop/doctype/override_doctype/item_group.py b/webshop/webshop/doctype/override_doctype/item_group.py
index 9148564392..3d74a58c30 100644
--- a/webshop/webshop/doctype/override_doctype/item_group.py
+++ b/webshop/webshop/doctype/override_doctype/item_group.py
@@ -82,6 +82,9 @@ def get_context(self, context):
return context
+ def has_website_permission(self, ptype, user, verbose=False):
+ return ptype == "read"
+
def get_item_for_list_in_html(context):
# add missing absolute link in files
# user may forget it during upload
diff --git a/webshop/webshop/variant_selector/utils.py b/webshop/webshop/variant_selector/utils.py
index dacf1f9e5e..976a6e2074 100644
--- a/webshop/webshop/variant_selector/utils.py
+++ b/webshop/webshop/variant_selector/utils.py
@@ -93,6 +93,16 @@ def get_attributes_and_values(item_code):
for iv in item_attribute_values:
ordered_attribute_value_map.setdefault(iv.parent, []).append(iv.attribute_value)
+ """Numeric attributes are not stored in the Item Attribute Value table.
+ However, they are included in valid_options. If they are not found in ordered_attribute_value_map
+ sort and add them to it. This does not include the entire range if there is no
+ product associated with specific number. Only possible values are returned.
+ """
+ for attr_name in attribute_list:
+ if attr_name not in ordered_attribute_value_map:
+ numeric_list = sorted([i for i in valid_options[attr_name] if i.replace(".","").isnumeric()], key=float)
+ ordered_attribute_value_map[attr_name] = numeric_list
+
# build attribute values in idx order
for attr in attributes:
valid_attribute_values = valid_options.get(attr.attribute, [])
@@ -246,4 +256,4 @@ def get_item_variant_price_dict(item_code, cart_settings):
)
return {"price": price}
- return None
\ No newline at end of file
+ return None
diff --git a/webshop/webshop/web_template/hero_slider/hero_slider.json b/webshop/webshop/web_template/hero_slider/hero_slider.json
index f929d3ca29..71c583e032 100644
--- a/webshop/webshop/web_template/hero_slider/hero_slider.json
+++ b/webshop/webshop/web_template/hero_slider/hero_slider.json
@@ -282,4 +282,4 @@
"standard": 1,
"template": "",
"type": "Section"
-}
\ No newline at end of file
+}
diff --git a/webshop/www/all-products/index.html b/webshop/www/all-products/index.html
index 026bf38f26..cbd76632b6 100644
--- a/webshop/www/all-products/index.html
+++ b/webshop/www/all-products/index.html
@@ -1,9 +1,9 @@
{% from "webshop/templates/includes/macros.html" import attribute_filter_section, field_filter_section, discount_range_filters %}
{% extends "templates/web.html" %}
-{% block title %}{{ _('All Products') }}{% endblock %}
+{% block title %}{{ _("All Products") }}{% endblock %}
{% block header %}
-