Valider 63989e80 rédigé par apachot@openstudio.fr's avatar apachot@openstudio.fr
Parcourir les fichiers

Deux modes de sélection de la quantité dans le panier :

- un select avec la quantité disponible (ne fonctionne pas toujours correctement, et ne permet pas de commander des produits qui ne sont pas en stock)
- deux boutons : + et - pour modifier la quantité, plus souple mais aucun contrôle des quantités disponibles

nouvelle option cfg pour activer un mode ou l'autre
parent d58fa36f
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+2 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -26,6 +26,8 @@ img_pack/etape_5_on.jpg -text
img_pack/fleche.jpg -text
img_pack/logo_thelia.png -text
img_pack/logo_thelia_petit.png -text
img_pack/moins.png -text
img_pack/plus.png -text
img_pack/recur.png -text
img_pack/spipthelia-cancel.png -text
img_pack/trash.png -text
+7 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -49,6 +49,13 @@
			<option value="oui" [(#CONFIG{spip_thelia/liens_produits_panier_spip_thelia}|=={"oui"}|?{selected="selected",})]>oui</option>		
		</select>

		<br /><label for="quantite_produit_select_spip_thelia">Modifier les quantités produits dans le panier avec un "select" :</label>	
		<select name="quantite_produit_select_spip_thelia" id="quantite_produit_select_spip_thelia">
			<option value="non" [(#CONFIG{spip_thelia/quantite_produit_select_spip_thelia}|=={"non"}|?{selected="selected",})]>non</option>		
			<option value="oui" [(#CONFIG{spip_thelia/quantite_produit_select_spip_thelia}|=={"oui"}|?{selected="selected",})]>oui</option>		
		</select>


		<br />
		<label for="infos_cheque_spip_thelia">Ecrire ici les infos sur le r&eacute;glement par ch&egrave;que ...</label>
		<textarea name="infos_cheque_spip_thelia" id="infos_cheque_spip_thelia" rows="10" cols="40">[(#CONFIG{spip_thelia/infos_cheque_spip_thelia})]</textarea>

img_pack/moins.png

0 → 100644
+107 octets
Chargement de la diff d'image…

img_pack/plus.png

0 → 100644
+127 octets
Chargement de la diff d'image…
+17 −6
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -43,8 +43,9 @@
						[(#CONFIG{spip_thelia/liens_produits_panier_spip_thelia}|=={"oui"}|oui)</a>]
					</td>
					<td>THELIA-PRIXU&nbsp;&euro; </td>
    					<form action="[(#URL_PAGE{panier,lang=#LANG}|ancre_url{panier})]" method="post" id="formpanierTHELIA-ARTICLE">
    					<td>
					[(#CONFIG{spip_thelia/quantite_produit_select_spip_thelia}|=={"non"}|non)
					<form action="[(#URL_PAGE{panier,lang=#LANG}|ancre_url{panier})]" method="post" 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" />
@@ -54,11 +55,21 @@
						</THELIA_quantite>
						</select>
						
						<noscript><input type="image" src="#CHEMIN{img_pack/recur.png}" class="bouton-actualiser" value="[<:spipthelia:actualiser:>]" /></noscript>
					</td>
						<noscript><input type="image" src="#CHEMIN{img_pack/recur.png}" class="bouton-actualiser" value="<:spipthelia:actualiser:>" /></noscript>
					</form>
					]
					[(#CONFIG{spip_thelia/quantite_produit_select_spip_thelia}|=={"non"}|oui)
					    THELIA-QUANTITE
					]
					</td>
					<td>THELIA-TOTAL&nbsp;&euro;</td>
					<td><a href="[(#URL_PAGE{panier,thelia_action=supprimer&thelia_article=THELIA-ARTICLE}|ancre_url{panier})]" title="<:spipthelia:supprimer:>"><img src="#CHEMIN{img_pack/trash.png}" width="16" height="16" alt="<:spipthelia:supprimer:>" /></a></td>
					<td> 
						  [(#CONFIG{spip_thelia/quantite_produit_select_spip_thelia}|=={"non"}|oui)
						    <a href="THELIA-PLUSURL"><img src="#CHEMIN{img_pack/plus.png}" alt="+" /></a>
						    <a href="THELIA-MOINSURL"><img src="#CHEMIN{img_pack/moins.png}" alt="-" /></a>
						  ]
						  <a href="[(#URL_PAGE{panier,thelia_action=supprimer&thelia_article=THELIA-ARTICLE}|ancre_url{panier})]" title="<:spipthelia:supprimer:>"><img src="#CHEMIN{img_pack/trash.png}" width="16" height="16" alt="<:spipthelia:supprimer:>" /></a>
					</td>
				</tr>
  	  			</THELIA_CONTENU_PANIER>