add new shop items

sync_v2
Raz 6 months ago
parent cd71834fdf
commit 6800c1643d
  1. 25
      shop/management/commands/create_initial_shop_data.py
  2. BIN
      shop/static/shop/images/products/PC008/blanc/PS_PA439_WHITE.png.avif
  3. BIN
      shop/static/shop/images/products/PC008/bleu-sport/PS_PA439_SPORTYNAVY.png.avif
  4. BIN
      shop/static/shop/images/products/PC008/kaki-fonce/PS_PA439_DARKKHAKI.png.avif
  5. BIN
      shop/static/shop/images/products/PC008/noir/PS_PA439_BLACK.png.avif
  6. BIN
      shop/static/shop/images/products/PC008/rose-clair/PS_PA439_PALEPINK.png.avif
  7. BIN
      shop/static/shop/images/products/PC008/sand/PS_PA439_SAND.png.avif
  8. BIN
      shop/static/shop/images/products/PC009/blanc/PS_PA438_WHITE.png.avif
  9. BIN
      shop/static/shop/images/products/PC009/bleu-sport/PS_PA438_SPORTYNAVY.png.avif
  10. BIN
      shop/static/shop/images/products/PC009/noir/PS_PA438_BLACK.png.avif
  11. BIN
      shop/static/shop/images/products/PC009/olive/PS_PA438_OLIVE.png.avif
  12. BIN
      shop/static/shop/images/products/PC009/rose-clair/PS_PA438_PALEPINK.png.avif
  13. BIN
      shop/static/shop/images/products/PC009/sand/PS_PA438_SAND.png.avif
  14. 9
      shop/templates/shop/partials/navigation_base.html

@ -18,10 +18,13 @@ class Command(BaseCommand):
{'name': 'Fuchsia', 'hex': '#C1366B', 'secondary_hex': None, 'ordering': 30},
{'name': 'Corail / Noir', 'hex': '#FF7F50', 'secondary_hex': '#000000', 'ordering': 40},
{'name': 'Gris Foncé Chiné / Noir', 'hex': '#4D4D4D', 'secondary_hex': '#000000', 'ordering': 50},
{'name': 'Olive', 'hex': '#635E53', 'secondary_hex': None, 'ordering': 54},
{'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 / Gris Foncé Chiné', 'hex': '#000000', 'secondary_hex': '#4D4D4D', 'ordering': 62},
{'name': 'Rose Clair', 'hex': '#E7C8CF', 'secondary_hex': None, 'ordering': 31},
{'name': 'Sand', 'hex': '#B4A885', 'secondary_hex': None, 'ordering': 32},
]
color_objects = {}
@ -137,6 +140,28 @@ class Command(BaseCommand):
'sizes': ['S', 'M', 'L', 'XL', 'XXL', '3XL'],
'image_filename': 'PS_PA1030_WHITE-SPORTYNAVY.png.avif'
},
{
'sku': 'PC008',
'title': 'T-shirt Simple Femme',
'description': 'T-shirt simple avec logo coeur.',
'price': 20.00,
'ordering_value': 60,
'cut': 1, # Women
'colors': ['Blanc', 'Bleu Sport', 'Sand', 'Noir', 'Kaki Foncé', 'Rose Clair'],
'sizes': ['XS','S', 'M', 'L', 'XL', 'XXL'],
'image_filename': 'PS_PA439_WHITE.png.avif'
},
{
'sku': 'PC009',
'title': 'T-shirt Simple Homme',
'description': 'T-shirt simple avec logo coeur.',
'price': 20.00,
'ordering_value': 61,
'cut': 2, # Men
'colors': ['Blanc', 'Bleu Sport', 'Sand', 'Noir', 'Olive', 'Rose Clair'],
'sizes': ['XS','S', 'M', 'L', 'XL', 'XXL', '3XL'],
'image_filename': 'PS_PA438_WHITE.png.avif'
},
]
for product_data in products:

@ -1,9 +1,12 @@
<nav class="margin10">
<a href="{% url 'shop:product_list' %}">La Boutique</a>
<a href="{% url 'shop:my_orders' %}">Mes Commandes</a>
<a href="{% url 'index' %}" class="orange">Accueil</a>
<a href="{% url 'clubs' %}" class="orange">Clubs</a>
{% if user.is_authenticated %}
<a href="{% url 'my-tournaments' %}" class="orange">Mes tournois</a>
<a href="{% url 'profile' %}">Mon compte</a>
<a href="{% url 'shop:my_orders' %}">Mes Commandes</a>
{% else %}
<a href="{% url 'login' %}">Se connecter</a>
<a href="{% url 'custom-login' %}">Se connecter</a>
{% endif %}
<a href="{% url 'shop:product_list' %}">La Boutique</a>
</nav>

Loading…
Cancel
Save