La boucle PANIER spip et thelia
Attention ces boucles nécessitent l'installation du plugin spip-thelia
Sommaire
Attention sous spip et thelia
- Dans thelia
panier.php?
- et renomé dans spip et thelia
spip.php?page=panier
- par la boucle
#URL_PAGE{panier}
Param entrée
deb : départ de lecture ( si on ne veut pas commencer au 1er article )
fin : fin de lecture
dernier : 1 si on veut seulement le dernier article
ref : ref d'un produit
Param sortie
THELIA-REF : référence produit
THELIA-ID : id du produit
THELIA-TITRE : titre du produit
THELIA-QUANTITE : quantite commandée
THELIA-PRODUIT : id du produit
THELIA-ARTICLE : numéro d'article dans le panier
THELIA-PRIXU : prix unitaire TTC
THELIA-PRIXUHT : prix unitaire HT
THELIA-TOTAL : prixu * quantite
THELIA-TOTALHT : prixu * quantite HT
THELIA-REMISE : remise
THELIA-PLUSURL : url + ( augmenter la quantité )
THELIA-MOINSURL : url - ( diminuer la quantité )
THELIA-SUPPRURL : url suppression produit
<a href="#URL_PAGE{panier,thelia_action=supprimer&thelia_article=THELIA-ARTICLE}"><a>
THELIA-PRODURL : url fiche produit
THELIA-TOTSANSPORT : total sans frais de port
THELIA-TOTSANSPORTHT : total sans frais de port HT
THELIA-PORT : frais de port
THELIA-PORTHT : frais de port HT
THELIA-TOTPORT : total port compris
THELIA-TOTPORTHT : total port compris HT
THELIA-DECTEXTE : liste des déclinaisons
THELIA-DECVAL : valeur des déclinaisons
THELIA-TVA : tva du produit
Substitutions panier
THELIA-PANIER_TOTAL : retourne la valeur totale du panier ( sans frais de port )
THELIA-PANIER_TOTALHT : retourne la valeur totale HT du panier ( sans frais de port )
THELIA-PANIER_PORT : retourne la valeur des frais de port
THELIA-PANIER_TOTPORT : retourne la valeur totale du panier ( frais de port compris )
THELIA-PANIER_REMISE : retourne la remise
THELIA-PANIER_NBART : nombre d'articles du panier
THELIA-PANIER_POIDS : Poids total de la commande
Panier contenu
<T_PANIER> <a href="#URL_PAGE{panier}">Votre panier contient THELIA-PANIER_NBART article(s).</a> <THELIA_PANIER type="PANIER"> </THELIA_PANIER> </T_PANIER> <a href="#URL_PAGE{panier}">panier vide</a> <//T_PANIER>
<THELIA_CONTENU_PANIER type="PANIER"> <THELIA_image type="IMAGE" produit="THELIA-ID" largeur="100" num="1"> <img src="THELIA-IMAGE" /> </THELIA_image> THELIA-REF THELIA-TITRE <THELIA_decval type="DECVAL" article="THELIA-ARTICLE"> THELIA-DECLITITRE : THELIA-VALEUR </THELIA_decval> THELIA-PRIXU € <form action="#URL_PAGE{panier,lang=#LANG}" method="post" name="formpanierTHELIA-ARTICLE" id="formpanierTHELIA-ARTICLE"> <input type="hidden" name="article" value="THELIA-ARTICLE" /> <input type="hidden" name="thelia_action" value="modifier" /> <input type="hidden" name="article" value="THELIA-ARTICLE" /> <select name="quantite" size="1" class="zoneDeSaisie" onchange="document.formpanierTHELIA- ARTICLE.submit()"> <THELIA_quantite type="QUANTITE" article="THELIA-ARTICLE" max="50"> <option value="THELIA-NUM" THELIA-SELECTED>THELIA-NUM</option> </THELIA_quantite> </select> </form> THELIA-TOTAL € <a href="#URL_PAGE{panier,thelia_action=supprimer&thelia_article=THELIA-ARTICLE}">supprimer</a> </THELIA_CONTENU_PANIER> total_panier : THELIA-PANIER_TOTAL € <a href="#URL_PAGE{adresse}">valider_panier</a> <a href="#URL_SITE_SPIP">retour_boutique</a>
--alainormandie 19 septembre 2008 à 19:15 (CEST)