La boucle ADRESSE spip et thelia
Attention ces boucles nécessitent l'installation du plugin spip-thelia
Sommaire
Attention adresse livraison_modifier sous spip et thelia
- Dans thelia
adresse.php? livraison_adresse.php? livraison_modifier.php?
- et renomé dans spip et thelia
spip.php?page=adresse spip.php?page=livraison_adresse spip.php?page=livraison_modifier
- par la boucle
#URL_PAGE{adresse} #URL_PAGE{livraison_adresse} #URL_PAGE{livraison_modifier}
Param entrée
Adresse : adresse à afficher
client : id du client ( pour afficher toutes les adresses d'un client )
defaut : adresse par defaut (0 ou 1)
Param sortie
THELIA-ID : id adresse
THELIA-LIBELLE : libellé de l'adresse
THELIA-RAISON : raison sociale
THELIA-RAISON1F : selected si madame
THELIA-RAISON2F : selected si mlle
THELIA-RAISON3F : selected si monsieur
THELIA-NOM : nom associé
THELIA-PRENOM : prénom associé
THELIA-ADRESSE1 : adresse associée
THELIA-ADRESSE2 : seconde ligne de l'adresse associée
THELIA-ADRESSE3 : complément d'adresse
THELIA-CPOSTAL : code postal associé
THELIA-VILLE : ville associée
THELIA-PAYS : pays associé
THELIA-EMAIL : email associé
THELIA-TELFIXE : téléphone fixe associé
THELIA-TELPORT : téléphone portable associé
THELIA-SUPPRURL : url de suppression
THELIA-URL : url associée
Substitutions adresse
THELIA-ADRESSE_ID : retourne l'id de l'adresse passée en paramètre d'url ( attribut adresse )
THELIA-ADRESSE_ACTIVE : retourne l'id de l'adresse active
Mon adresse de facturation
THELIA-CLIENT_RAISON THELIA-CLIENT_PRENOM THELIA-CLIENT_NOM <br /> THELIA-CLIENT_ADRESSE1 THELIA-CLIENT_ADRESSE2 THELIA-CLIENT_ADRESSE3<br /> THELIA-CLIENT_CPOSTAL THELIA-CLIENT_VILLE THELIA-CLIENT_PAYS<br /> <a href="#URL_PAGE{compte_modifier}">modifier adresse</a>
Mon adresse de livraison
<THELIA_adrcours type="ADRESSE" adresse="THELIA-ADRESSE_ACTIVE"> THELIA-RAISON THELIA-PRENOM THELIA-NOM <br /> THELIA-ADRESSE1 THELIA-ADRESSE2 THELIA-ADRESSE3 <br /> THELIA-CPOSTAL THELIA-VILLE <THELIA_pays type="PAYS" id="THELIA-PAYS"> THELIA-TITRE </THELIA_pays> <THELIA_adrmodcours type="ADRESSE" adresse="THELIA-ADRESSE_ACTIVE" defaut="0"> <a href="#URL_PAGE{livraison_modifier,adresse=THELIA-ID}">modifier adresse</a> </THELIA_adrmodcours> </THELIA_adrcours>
Selectionner une autre adresse
<a href="#URL_PAGE{adresse,thelia_action=modadresse&adresse=0}">adresse facturation defaut</a> <THELIA_adr type="ADRESSE" client="THELIA-CLIENT_ID"> <a href="#URL_PAGE{adresse,thelia_action=modadresse&adresse=THELIA-ID}">THELIA-LIBELLE</a> </THELIA_adr> <a href="#URL_PAGE{livraison_adresse}">ajouter adresse livraison</a>
Type livraison tarif
<T_transport> <THELIA_transport type="TRANSPORT"> THELIA-TITRE THELIA-PORT € <a href="THELIA-URLCMD">continuer</a> </THELIA_transport> </T_transport> probleme adresse livraison <//T_transport> <a href="THELIA-URLPREC">page precedente</a>
--alainormandie 19 septembre 2008 à 13:21 (CEST)