La boucle DECVAL
De TheliaDoc
Le boucle DECVAL permet d'afficher dans la panier le détail de la déclinaison choisie.
Paramètres d'entrée
article : identifiant de l'article dans le panier
declinaison : identifiant de la déclinaison associée
ref : référence du produit associé
Paramètres de sortie
#DECLITITRE : titre de la déclinaison
#VALEUR : valeur associée
#DECLINAISON : identifiant de la déclinaison associée
#DECLIDISP : déclidisp associée
#ARTICLE : numéro d'article dans le panier
#REF : valeur du paramètre 'ref' passé à la boucle
Exemple
Pour afficher le chapo de la déclinaison et le titre de la déclidisp choisie dans le panier:
<THELIA_panier type="PANIER"> <p>#TITRE</p> <THELIA_decval type="DECVAL" article="#ARTICLE"> <THELIA_declinaison type="DECLINAISON" id="#DECLINAISON"> #CHAPO: </THELIA_declinaison> <THELIA_declidisp type="DECLIDISP" id="#DECLIDISP"> #TITRE </THELIA_declidisp> </THELIA_decval> </THELIA_panier>
Retour Les boucles simples