diff --git a/shop/static/shop/images/products/PC001/bleu-sport/hat-logo.png b/shop/static/shop/images/products/PC001/bleu-sport/hat-logo.png deleted file mode 100644 index 15ab6f3..0000000 Binary files a/shop/static/shop/images/products/PC001/bleu-sport/hat-logo.png and /dev/null differ diff --git a/shop/templatetags/shop_extras.py b/shop/templatetags/shop_extras.py index 704d9d1..9938501 100644 --- a/shop/templatetags/shop_extras.py +++ b/shop/templatetags/shop_extras.py @@ -49,9 +49,10 @@ def color_images_url(default_image, color_name, sku): any(f.lower().endswith(ext) for ext in supported_extensions)] if files: files.sort(key=lambda x: ( - 1 if '-B_' in x else - 2 if '-S_' in x else - 0 + 2 if '-B_' in x else + 3 if '-S_' in x else + 0 if '-logo' in x else + 1 )) return [f'{base_path}{file}' for file in files]