update shop

sync_v2
Raz 7 months ago
parent f047473d33
commit 99231d2414
  1. BIN
      shop/static/shop/images/products/PC001/bleu-sport/hat-logo.png
  2. 7
      shop/templatetags/shop_extras.py

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1016 KiB

@ -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]

Loading…
Cancel
Save