69 lines
3.4 KiB
Plaintext
69 lines
3.4 KiB
Plaintext
/*************************************************************************************/
|
|
/* */
|
|
/* Thelia */
|
|
/* */
|
|
/* Copyright (c) Octolys Development */
|
|
/* email : thelia@octolys.fr */
|
|
/* web : http://www.octolys.fr */
|
|
/* */
|
|
/* This program is free software; you can redistribute it and/or modify */
|
|
/* it under the terms of the GNU General Public License as published by */
|
|
/* the Free Software Foundation; either version 2 of the License, or */
|
|
/* (at your option) any later version. */
|
|
/* */
|
|
/* This program is distributed in the hope that it will be useful, */
|
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
/* GNU General Public License for more details. */
|
|
/* */
|
|
/* You should have received a copy of the GNU General Public License */
|
|
/* along with this program; if not, write to the Free Software */
|
|
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
/* */
|
|
/*************************************************************************************/
|
|
|
|
Ce plugin permet de gérer un comparateur de produit (fonctionnement similaire au panier)
|
|
|
|
Pour ajouter un produit au comparateur : page.php?action=ajouter_comparateur&ref=REF_DU_PROD
|
|
Pour supprimer un produit du comparateur : page.php?action=supprimer_comparateur&article=INDEX_DANS_LE_COMPARATEUR
|
|
|
|
Substitution :
|
|
#COMPARATEUR_NBART : nombre de produits dans le comparateur
|
|
|
|
Boucle Comparateur :
|
|
sortie
|
|
#ARTICLE : index du produit dans le comparateur
|
|
#REF : référence du produit dans le comparateur
|
|
|
|
config.php vous permet de configurer le nombre de produit max dans le comparateur
|
|
|
|
Veuillez simplement glisser le répertoire comparateur dans le dossier client/plugins de votre Thelia.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Exemple d'utilisation sur la page produit:
|
|
|
|
Nb produit dans le comparateur : #COMPARATEUR_NBART
|
|
<THELIA_comparateur type="COMPARATEUR" >
|
|
#ARTICLE #REF <a href="#VARIABLE(urlsite)/?fond=produit&id_produit=#PRODUIT_ID&id_rubrique=#PRODUIT_RUBRIQUE&action=supprimer_comparateur&article=#ARTICLE">enlever</a><br/>
|
|
</THELIA_comparateur>
|
|
|
|
<a href="#VARIABLE(urlsite)/?fond=produit&id_produit=#ID&id_rubrique=#RUBRIQUE&action=ajouter_comparateur&ref=#REF">ajouter</a>
|
|
|
|
<THELIA SI CONNECTE>
|
|
<a href="#VARIABLE(urlsite)/?fond=produit&id_produit=#ID&id_rubrique=#RUBRIQUE&action=sauver_comparateur&ref=#REF">sauver_comparateur</a>
|
|
</THELIA SI CONNECTE>
|
|
|
|
<THELIA SI NON CONNECTE>
|
|
Connectez-vous pour pouvoir sauver votre comparateur
|
|
</THELIA SI NON CONNECTE>
|
|
|
|
|
|
Auteur du plugin : Yoan De Macedo
|
|
yoandm@gmail.com
|