en SPIP3, autant en profiter pour inclure le plugin abonnement SPIP3

master
toutati@free.fr 10 years ago
parent c816acca02
commit 0a43689e80

1
.gitattributes vendored

@ -5,6 +5,7 @@ css/zcommerce.css -text
extra/page-z-commerce.html -text
images/z-commerce-48.png -text
inclure/adresse.html -text
inclure/les_abonnements.html -text
inclure/les_articles.html -text
inclure/les_articles_precieux.html -text
inclure/les_documents_precieux.html -text

@ -11,12 +11,9 @@
[(#PLUGIN{produits}|oui)
<INCLURE{fond=inclure/les_produits}{env}>
]
[(#PLUGIN{abonnement}|oui)
[(#PLUGIN{abonnements}|oui)
<INCLURE{fond=inclure/les_abonnements}{env}>
]
[(#PLUGIN{zaboarticle}|oui)
<INCLURE{fond=inclure/les_articles}{env}>
]
[(#REM) articles avec un champ prix non vide. Tester d'abord l'existence du champ prix dans la table articles]
<BOUCLE_articles(ARTICLES)>[(#PRIX*|>{0}|oui) #SET{article_prix,#PRIX}]</BOUCLE_articles>

@ -0,0 +1,20 @@
<B_abonnements>
<div class="vente liste_abonnements">
<h2><:zcommerce:les_abonnements:></h2>
<table class="spip">
<BOUCLE_abonnements(ABONNEMENTS_OFFRES?)>
<tr class="row_[(#COMPTEUR_BOUCLE|alterner{odd, even})]">
<td>
<td>[(#LOGO_ABONNEMENTS_OFFRE|image_reduire{100}|sinon{#ID_ABONNEMENTS_OFFRE})]</td>
</td>
<td><div class="#EDIT{titre}">#TITRE</div></td>
<td><div class="#EDIT{descriptif}">#DESCRIPTIF</div></td>
<td class="prix">#PRIX</td>
<td class="ajouter_au_panier">
[(#BOUTON_ACTION{<:zcommerce:ajouter_au_panier:>,#URL_ACTION_AUTEUR{remplir_panier,abonnements_offre-#ID_ABONNEMENTS_OFFRE-1,#SELF},ajax})]
</td>
</tr>
</BOUCLE_abonnements>
</table>
</div>
</B_abonnements><!--<:zcommerce:aucun_abonnement:>--><//B_abonnements>
Loading…
Cancel
Save