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

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> [resolu] bullets and lines, category
moisea
posté 8 Aug 2005, 18:27
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 55
Inscrit : 5-October 03
Membre no 1539



salut, j'ai utilise la contrib. pour installer les bullets and lines dans la boite categoriesvoila le lien , et je n'arrive pas a mettre des boullets differents par rapport aux categories et sous-categories.
vous savez comment faire?
merci


--------------------
Go to the top of the page
 
fissiaux
posté 8 Aug 2005, 19:09
Message #2


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





Tu rajoutes le test ($foo[$counter]['parent'] == 0) et tu fais l'affichage de tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif', '') en conséquence.
Go to the top of the page
 
moisea
posté 9 Aug 2005, 19:53
Message #3


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 55
Inscrit : 5-October 03
Membre no 1539



hello fissiaux,

quelque chose du genre....?

CODE
if ($foo[$counter]['parent'] == 0) {
     $cPath_new = 'cPath=' . $counter;
   } else {
     $cPath_new = 'cPath=' . $foo[$counter]['path'];
   }

   $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);
   $categories_string .= '">' . tep_image(DIR_WS_IMAGES . 'bullet3.gif', '') . ' ';;

   if ( ($id) && (in_array($counter, $id)) ) {
     $categories_string .= "<b><font color='0033ff'>";

-------------------------------------
if ($foo[$counter]['parent'] == 0) {
     $cPath_new = 'cPath=' . $counter;
   } else {
     $cPath_new = 'cPath=' . $foo[$counter]['path'];
   }

   $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);
   $categories_string .= '">' . tep_image(DIR_WS_IMAGES . 'bullet2.gif', '') . '&nbsp;';;

   if ( ($id) && (in_array($counter, $id)) ) {
     $categories_string .= "<b><font color='0099ff'>";


thank you.

PS: merci pour ta reponse.


--------------------
Go to the top of the page
 
isnogood
posté 9 Aug 2005, 22:30
Message #4


Ceinture noire OSC
Icône de groupe

Groupe : Membres
Messages : 2045
Inscrit : 22-February 04
Membre no 2022




NOn, plutôt un truc comme cela. Remplaces :

CODE
   if ($foo[$counter]['parent'] == 0) {
     $cPath_new = 'cPath=' . $counter;
   } else {
     $cPath_new = 'cPath=' . $foo[$counter]['path'];
   }

   $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);
   $categories_string .= '">' . tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif', '') . '&nbsp;';;

   if ( ($id) && (in_array($counter, $id)) ) {
     $categories_string .= "<b><font color='#ff0000'>";
   }


par

CODE
   if ($foo[$counter]['parent'] == 0) {
     $cPath_new = 'cPath=' . $counter;
   } else {
     $cPath_new = 'cPath=' . $foo[$counter]['path'];
   }

   $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);
   if ($foo[$counter]['parent'] == 0) {
   $categories_string .= '">' . tep_image(DIR_WS_IMAGES . 'checkout_bullet2.gif', '') . '&nbsp;';;
   } else {
   $categories_string .= '">' . tep_image(DIR_WS_IMAGES . 'checkout_bullet3.gif', '') . '&nbsp;';;
   }

   if ( ($id) && (in_array($counter, $id)) ) {
     $categories_string .= "<b><font color='#ff0000'>";
   }


enfin, si j'ai bien compris l'idée de fissiaux biggrin.gif
Go to the top of the page
 
moisea
posté 9 Aug 2005, 23:37
Message #5


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 55
Inscrit : 5-October 03
Membre no 1539



merci isnogoog, mais cela ne marche pas. je vais essayer de tripoter et voir ce que cela donne. merci d'avoir essaye. biggrin.gif


--------------------
Go to the top of the page
 
fissiaux
posté 14 Aug 2005, 21:42
Message #6


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





Le code proposé par isnogood fonctionne. Bien sûr, il faut créer les images checkout_bullet2.gif et checkout_bullet3.gif, la première pour les catégories, la seconde pour les sous-catégories.

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 : 28th March 2024 - 10:29
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)