shop update

sync_v2
Raz 7 months ago
parent ae115bc4cb
commit c2c5f20045
  1. 7
      shop/management/commands/create_initial_shop_data.py
  2. BIN
      shop/static/shop/images/products/PC001/blanc/PS_KP912-F_WHITE.png
  3. BIN
      shop/static/shop/images/products/PC001/blanc/PS_KP912_WHITE.png.avif
  4. BIN
      shop/static/shop/images/products/PC001/blanc/hat-logo.png
  5. BIN
      shop/static/shop/images/products/PC001/bleu-sport/CASQUETTE - KP912 MARINE-F_.png
  6. BIN
      shop/static/shop/images/products/PC001/bleu-sport/PS_KP912_NAVY.png.avif
  7. 0
      shop/static/shop/images/products/PC001/noir/noir_hat-F_.png.avif
  8. BIN
      shop/static/shop/images/products/PC002/blanc/PS_K473-B_WHITE.png.avif
  9. BIN
      shop/static/shop/images/products/PC002/blanc/PS_K473_WHITE.png.avif
  10. BIN
      shop/static/shop/images/products/PC002/blanc/SWEAT - K473 BLANC- DEVANT-F_.png
  11. BIN
      shop/static/shop/images/products/PC002/blanc/SWEAT - K473-B_BLANC.png
  12. 0
      shop/static/shop/images/products/PC002/bleu-sport/PS_K473_NAVY-F_.png.avif
  13. 0
      shop/static/shop/images/products/PC002/fuchsia/PS_K473_FUCHSIA-F_.png.avif
  14. BIN
      shop/static/shop/images/products/PC002/kaki-fonce/SWEAT - K473 DARK KAKI - DEVANT-F_.png
  15. BIN
      shop/static/shop/images/products/PC002/kaki-fonce/SWEAT - K473-B_DARK-KAKI.png
  16. 0
      shop/static/shop/images/products/PC002/noir/PS_K473_BLACK-F_.png.avif
  17. BIN
      shop/static/shop/images/products/PC003/blanc/PS_K476-B_WHITE.png.avif
  18. BIN
      shop/static/shop/images/products/PC003/blanc/PS_K476_WHITE.png.avif
  19. BIN
      shop/static/shop/images/products/PC003/blanc/SWEAT - K476 BLANC - DEVANT-F_.png
  20. BIN
      shop/static/shop/images/products/PC003/blanc/SWEAT - K476-B_BLANC.png
  21. 0
      shop/static/shop/images/products/PC003/bleu-sport/PS_K476_NAVY-F_.png.avif
  22. BIN
      shop/static/shop/images/products/PC003/fuchsia/PS_K476-B_FUCHSIA.png.avif
  23. BIN
      shop/static/shop/images/products/PC003/fuchsia/PS_K476_FUCHSIA.png.avif
  24. BIN
      shop/static/shop/images/products/PC003/fuchsia/SWEAT - K476-B_FUSHIA.png
  25. BIN
      shop/static/shop/images/products/PC003/fuchsia/SWEAT - K476-FUSHIA-F_.png
  26. BIN
      shop/static/shop/images/products/PC003/kaki-fonce/SWEAT - K476 DARK KAKI - DEVANT-F_.png
  27. BIN
      shop/static/shop/images/products/PC003/kaki-fonce/SWEAT - K476-B_DARK-KAKI.png
  28. 0
      shop/static/shop/images/products/PC003/noir/PS_K476_BLACK-F_.png.avif
  29. BIN
      shop/static/shop/images/products/PC004/blanc-bleu-sport/DEBARDEUR PA4031-F_.png
  30. BIN
      shop/static/shop/images/products/PC004/blanc-bleu-sport/PS_PA4031_WHITE-SPORTYNAVY.png.avif
  31. BIN
      shop/static/shop/images/products/PC004/blanc-bleu-sport/shirt-logo.png
  32. 0
      shop/static/shop/images/products/PC004/noir-corail/PS_PA4031_BLACK-CORAL-F_.png.avif
  33. 0
      shop/static/shop/images/products/PC004/noir-gris-fonce-chine/PS_PA4031_BLACK-MARLDARKGREY-F_.png.avif
  34. BIN
      shop/static/shop/images/products/PC005/blanc-bleu-sport/JUPE PA1031-F_.png
  35. BIN
      shop/static/shop/images/products/PC005/blanc-bleu-sport/PS_PA1031_WHITE-SPORTYNAVY.png.avif
  36. BIN
      shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt-logo.png
  37. 0
      shop/static/shop/images/products/PC005/bleu-sport-blanc/PS_PA1031_SPORTYNAVY-WHITE-F_.png.avif
  38. 0
      shop/static/shop/images/products/PC005/corail-noir/PS_PA1031_CORAL-BLACK-F_.png.avif
  39. 0
      shop/static/shop/images/products/PC005/noir-gris-fonce-chine/PS_PA1031_BLACK-MARLDARKGREY-F_.png.avif
  40. 0
      shop/static/shop/images/products/PC006/blanc-gris-clair/PS_PA4030_WHITE-FINEGREY-F_.png.avif
  41. BIN
      shop/static/shop/images/products/PC006/bleu-sport-blanc/PS_PA4030_SPORTYNAVY-WHITE.png.avif
  42. BIN
      shop/static/shop/images/products/PC006/bleu-sport-blanc/T.SHIRT PA4030-F_.png
  43. BIN
      shop/static/shop/images/products/PC006/bleu-sport-blanc/shirt-logo.png
  44. 0
      shop/static/shop/images/products/PC006/bleu-sport-bleu-sport-chine/PS_PA4030_SPORTYNAVY-MARLSPORTYNAVY-F_.png.avif
  45. 0
      shop/static/shop/images/products/PC006/noir-gris-fonce-chine/PS_PA4030_BLACK-MARLDARKGREY-F_.png.avif
  46. 0
      shop/static/shop/images/products/PC006/noir/PS_PA4030_BLACK-F_.png.avif
  47. BIN
      shop/static/shop/images/products/PC007/blanc-bleu-sport/PS_PA1030_WHITE-SPORTYNAVY.png.avif
  48. BIN
      shop/static/shop/images/products/PC007/blanc-bleu-sport/SHORT PA1030-F_.png
  49. BIN
      shop/static/shop/images/products/PC007/blanc-bleu-sport/short-logo.png
  50. 0
      shop/static/shop/images/products/PC007/blanc-gris-clair/PS_PA1030_WHITE-FINEGREY-F_.png.avif
  51. 0
      shop/static/shop/images/products/PC007/gris-fonce-chine-noir/PS_PA1030_MARLDARKGREY-BLACK-F_.png.avif
  52. 0
      shop/static/shop/images/products/PC007/noir/PS_PA1030_BLACK-F_.png.avif
  53. 2
      shop/templates/shop/product_list.html
  54. 10
      shop/templatetags/shop_extras.py

@ -18,7 +18,8 @@ class Command(BaseCommand):
{'name': 'Fuchsia', 'hex': '#C1366B', 'secondary_hex': None, 'ordering': 30}, {'name': 'Fuchsia', 'hex': '#C1366B', 'secondary_hex': None, 'ordering': 30},
{'name': 'Corail / Noir', 'hex': '#FF7F50', 'secondary_hex': '#000000', 'ordering': 40}, {'name': 'Corail / Noir', 'hex': '#FF7F50', 'secondary_hex': '#000000', 'ordering': 40},
{'name': 'Gris Foncé Chiné / Noir', 'hex': '#4D4D4D', 'secondary_hex': '#000000', 'ordering': 50}, {'name': 'Gris Foncé Chiné / Noir', 'hex': '#4D4D4D', 'secondary_hex': '#000000', 'ordering': 50},
{'name': 'Noir', 'hex': '#333333', 'secondary_hex': None, 'ordering': 60}, {'name': 'Kaki Foncé', 'hex': '#707163', 'secondary_hex': None, 'ordering': 55},
{'name': 'Noir', 'hex': '#000000', 'secondary_hex': None, 'ordering': 60},
{'name': 'Noir / Corail', 'hex': '#000000', 'secondary_hex': '#FF7F50', 'ordering': 61}, {'name': 'Noir / Corail', 'hex': '#000000', 'secondary_hex': '#FF7F50', 'ordering': 61},
{'name': 'Noir / Gris Foncé Chiné', 'hex': '#000000', 'secondary_hex': '#4D4D4D', 'ordering': 62}, {'name': 'Noir / Gris Foncé Chiné', 'hex': '#000000', 'secondary_hex': '#4D4D4D', 'ordering': 62},
] ]
@ -77,7 +78,7 @@ class Command(BaseCommand):
'price': 50.00, 'price': 50.00,
'ordering_value': 10, 'ordering_value': 10,
'cut': 1, 'cut': 1,
'colors': ['Blanc', 'Bleu Sport', 'Noir', 'Fuchsia'], 'colors': ['Blanc', 'Bleu Sport', 'Kaki Foncé', 'Noir', 'Fuchsia'],
'sizes': ['XS', 'S', 'M', 'L', 'XL', 'XXL'], 'sizes': ['XS', 'S', 'M', 'L', 'XL', 'XXL'],
'image_filename': 'PS_K473_WHITE.png.avif' 'image_filename': 'PS_K473_WHITE.png.avif'
}, },
@ -88,7 +89,7 @@ class Command(BaseCommand):
'price': 50.00, 'price': 50.00,
'ordering_value': 11, 'ordering_value': 11,
'cut': 2, 'cut': 2,
'colors': ['Blanc', 'Bleu Sport', 'Noir', 'Fuchsia'], 'colors': ['Blanc', 'Bleu Sport', 'Kaki Foncé', 'Noir', 'Fuchsia'],
'sizes': ['XS', 'S', 'M', 'L', 'XL', 'XXL', '3XL', '4XL'], 'sizes': ['XS', 'S', 'M', 'L', 'XL', 'XXL', '3XL', '4XL'],
'image_filename': 'PS_K476_WHITE.png.avif' 'image_filename': 'PS_K476_WHITE.png.avif'
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 855 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 KiB

@ -20,7 +20,7 @@
<div class="info-box" style="border-left: 4px solid #f39200; padding: 12px; margin: 20px 12px;"> <div class="info-box" style="border-left: 4px solid #f39200; padding: 12px; margin: 20px 12px;">
<h3 style="color: #505050; margin-top: 0;">Bienvenue sur la boutique Padel Club des copains !</h3> <h3 style="color: #505050; margin-top: 0;">Bienvenue sur la boutique Padel Club des copains !</h3>
<p style="margin-top: 10px; margin-bottom: 0;"><strong>Photos :</strong> Les photos des vêtements n'ont pas encore le logo, la description indique où il situera. <p style="margin-top: 10px; margin-bottom: 0;"><strong>Photos :</strong> Les photos des vêtements n'ont pas encore tous le logo, la description indique où il situera.
<p style="margin-top: 10px; margin-bottom: 0;"><strong>Livraison :</strong> Commandez en ligne et récupérez votre commande en main propre lors de votre prochaine session de padel au club !</p> <p style="margin-top: 10px; margin-bottom: 0;"><strong>Livraison :</strong> Commandez en ligne et récupérez votre commande en main propre lors de votre prochaine session de padel au club !</p>
</div> </div>

@ -36,10 +36,11 @@ def color_images_url(default_image, color_name, sku):
if files: if files:
# Sort files by specific prefix rules # Sort files by specific prefix rules
files.sort(key=lambda x: ( files.sort(key=lambda x: (
1 if '-B_' in x else 2 if '-B_' in x else
2 if '-S_' in x else 3 if '-S_' in x else
1 if '-F_' in x else
0 if '-logo' in x else 0 if '-logo' in x else
1 4
)) ))
return [f'{base_path}{color_folder}/{file}' for file in files] return [f'{base_path}{color_folder}/{file}' for file in files]
@ -52,8 +53,9 @@ def color_images_url(default_image, color_name, sku):
files.sort(key=lambda x: ( files.sort(key=lambda x: (
2 if '-B_' in x else 2 if '-B_' in x else
3 if '-S_' in x else 3 if '-S_' in x else
1 if '-F_' in x else
0 if '-logo' in x else 0 if '-logo' in x else
1 4
)) ))
return [f'{base_path}{file}' for file in files] return [f'{base_path}{file}' for file in files]

Loading…
Cancel
Save