- Posts: 9
- Thank you received: 1
Affichage stock produit
2 years 11 months ago #357485
by SNAP-GT
Affichage stock produit was created by SNAP-GT
-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.0.1
-- PHP version -- : 8.2.12
-- Browser(s) name and version -- : 120.0.1
Bonjour,
Pour l'affichage des produits en stock, j'aimerais ne pas afficher la quantité mais :
Merci d'avance pour votre aide.
Stephan
-- Joomla version -- : 5.0.1
-- PHP version -- : 8.2.12
-- Browser(s) name and version -- : 120.0.1
Bonjour,
Pour l'affichage des produits en stock, j'aimerais ne pas afficher la quantité mais :
- une pastille de couleur : 0: rouge, 1: orange, >1 vert
- un texte différent: 0: rupture de stock 1: dernière pièce >1: en stock
Merci d'avance pour votre aide.
Stephan
Please Log in or Create an account to join the conversation.
2 years 11 months ago - 2 years 11 months ago #357494
by nicolas
Replied by nicolas on topic Affichage stock produit
Bonjour,
C'est possible avec des overrides de traduction.
Vous avez les trois clés de traduction NO_STOCK (stock à 0) X_ITEM_IN_STOCK (stock à 1) et X_ITEMS_IN_STOCK (stock supérieur à 1) que vous pouvez modifier.
Par exemple, au lieu de :
Vous pourriez avoir:
Voici la documentation sur les overrides de traduction:
www.hikashop.com/download/languages.html#modify
C'est possible avec des overrides de traduction.
Vous avez les trois clés de traduction NO_STOCK (stock à 0) X_ITEM_IN_STOCK (stock à 1) et X_ITEMS_IN_STOCK (stock supérieur à 1) que vous pouvez modifier.
Par exemple, au lieu de :
Code:
NO_STOCK="Pas de stock"
Code:
NO_STOCK="<img src='https://mywebsite.com/myredicon.jpg' /> rupture de stock"
www.hikashop.com/download/languages.html#modify
Last edit: 2 years 11 months ago by nicolas.
The following user(s) said Thank You: SNAP-GT
Please Log in or Create an account to join the conversation.
2 years 11 months ago #357504
by SNAP-GT
Replied by SNAP-GT on topic Affichage stock produit
The following user(s) said Thank You: Philip
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds