osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> [Résolu] Ne pas afficher le panier quand on est dans shopping_cart.php, Affichage conditionnel
jeanflo
posté 25 Jan 2011, 12:16
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 50
Inscrit : 18-March 08
Lieu : Tours
Membre no 21193



Bonjour,

Le panier d'achat , je ne l'affiche que si il y a quelque chose dedans grâce à
Code
if ($cart->count_contents() > 0)


J'aimerai ne pas afficher ce panier sur les pages : shopping_cart.php, checkout_shipping.php,...
Mais quel test utiliser ?
Comment savoir si je suis sur la page shopping_cart.php ?

Merci pour les pistes
Cordialement

Ce message a été modifié par jeanflo - 25 Jan 2011, 13:43.
Go to the top of the page
 
brouillard
posté 25 Jan 2011, 12:37
Message #2


Ceinture orange+ OSC
Icône de groupe

Groupe : Membres
Messages : 301
Inscrit : 9-December 09
Membre no 26687



tu mets la ta column

if (tep_href_link(FILENAME_INFO_SHOPPING_CART, '') != tep_href_link(basename($PHP_SELF), '')) {

require(DIR_WS_BOXES . 'shopping_cart.php');

}
Go to the top of the page
 
jeanflo
posté 25 Jan 2011, 13:43
Message #3


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 50
Inscrit : 18-March 08
Lieu : Tours
Membre no 21193



Citation (brouillard @ 25 Jan 2011, 13:37) *
tu mets la ta column

if (tep_href_link(FILENAME_INFO_SHOPPING_CART, '') != tep_href_link(basename($PHP_SELF), '')) {

require(DIR_WS_BOXES . 'shopping_cart.php');

}


Merci brouillard
Cela fonctionne très bien

Petite correction :
Code
if (tep_href_link(FILENAME_SHOPPING_CART, '') != tep_href_link(basename($PHP_SELF), '')) {
Go to the top of the page
 
brouillard
posté 25 Jan 2011, 16:24
Message #4


Ceinture orange+ OSC
Icône de groupe

Groupe : Membres
Messages : 301
Inscrit : 9-December 09
Membre no 26687



désolé, j'ai confondu dans le filname.php la page shopping_cart.php avec la page info_... biggrin.gif
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 22nd May 2013 - 03:20
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)