From 63ffb53e4189e0be8ae3365ad248d2a8426e3a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Panu=20Tulim=C3=A4ki?= Date: Sun, 28 Aug 2016 10:53:56 +0300 Subject: [PATCH 1/2] Fix for showing discount on product box Fixes issues with discount percentage. Original code will cause TypeError: bad operand type for unary -: 'unicode'. --- .../shuup/front/macros/theme/product.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shuup_megastore_theme/templates/shuup_megastore_theme/shuup/front/macros/theme/product.jinja b/shuup_megastore_theme/templates/shuup_megastore_theme/shuup/front/macros/theme/product.jinja index 83c792f..50b6190 100644 --- a/shuup_megastore_theme/templates/shuup_megastore_theme/shuup/front/macros/theme/product.jinja +++ b/shuup_megastore_theme/templates/shuup_megastore_theme/shuup/front/macros/theme/product.jinja @@ -114,7 +114,7 @@ {% if product|is_discounted %}
{% set discount_percent = product|discount_percent %} - {{ -discount_percent }} + -{{ discount_percent }}
{% endif %} {% if show_image %} From 09c630b5df3f8a1a41a18c2d8cd92c864cabaeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Panu=20Tulim=C3=A4ki?= Date: Sun, 28 Aug 2016 11:01:30 +0300 Subject: [PATCH 2/2] Bump version to 1.0.8 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 86b51bd..971a29a 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ if __name__ == '__main__': setuptools.setup( name="shuup_megastore_theme", - version="1.0.7", + version="1.0.8", description="Shuup Megastore Theme", packages=setuptools.find_packages(), include_package_data=True,