[Skip to main content](#vessel-content)

#   Ajout panier seulement pour les enregistrés ?

##

- **[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")**
- [![tramber91's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/82-tramber91 "View tramber91's Profile") Topic Author
- [ Offline](/forum/user/82-tramber91)

Less More

- Posts: 119
- Thank you received: 6
-
- [](http://www.en-toutes-lettres.fr)
-

13 years 11 months ago [\#81529](#81529) by [tramber91](/forum/user/82-tramber91 "View tramber91's Profile")  *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#81529 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")* was created by *[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")*

Bonsoir

J'ai pas trouvé le truc
possible d'avoir avec la version starter
la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?

merci

cordialement

Bertrand

---

[ www.en-toutes-lettres.fr/](http://www.en-toutes-lettres.fr/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#81601](#81601) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#81601 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Bonjour,

La restriction d'ajout au panier n'est pas présente dans HikaShop, ce qui peut être fait c'est restreindre l'affichage d'un module, des produits, catégories aux utilisateurs non enregistrés.
Sinon vous pouvez éditer les vue "product / listing_img_title" et "product / show_default" pour ajouter une condition d'affichage de la partie affichant le bouton ajouter au panier.

Contrôle sur le type d'utilisateur, si public &gt; on cache, si enregistré &gt; on affiche.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")**
- [![tramber91's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/82-tramber91 "View tramber91's Profile") Topic Author
- [ Offline](/forum/user/82-tramber91)

Less More

- Posts: 119
- Thank you received: 6
-
- [](http://www.en-toutes-lettres.fr)
-

13 years 11 months ago [\#81723](#81723) by [tramber91](/forum/user/82-tramber91 "View tramber91's Profile")  Replied by *[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#81723 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Merci mais ![:unsure:](/media/kunena/emoticons/18.png ":unsure:") avec le php

possible d'avoir les 2 codes si et fin de si

merci

Bertrand

---

[ www.en-toutes-lettres.fr/](http://www.en-toutes-lettres.fr/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#81813](#81813) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#81813 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Dans la vue "product / quantity", ajoutez le code: Code:

&lt;?php if(hikashop_loadUser() != null){ ?&gt;

Tout en haut du fichier, et: Code:

&lt;?php } ?&gt;

Tout en bas.

The following user(s) said Thank You: [tramber91](/forum/user/82-tramber91 "View tramber91's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")**
- [![tramber91's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/82-tramber91 "View tramber91's Profile") Topic Author
- [ Offline](/forum/user/82-tramber91)

Less More

- Posts: 119
- Thank you received: 6
-
- [](http://www.en-toutes-lettres.fr)
-

13 years 10 months ago [\#85095](#85095) by [tramber91](/forum/user/82-tramber91 "View tramber91's Profile")  Replied by *[tramber91](/forum/user/82-tramber91 "View tramber91's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#85095 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Excuses moi du délai de réponse
C'est OK
merci pour le truc et meilleurs voeux

---

[ www.en-toutes-lettres.fr/](http://www.en-toutes-lettres.fr/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97231](#97231) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97231 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

intéréssant, j'ai essayé sur product-Listing price
mais ca ne marche pas comme il faut...
cela note de drole de chose entre la photo et le tarif, et des fois même je n'ai plus accés au site
il y a t'il autre chose a mettre ou je me trompe de fichier dans vue?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#97348](#97348) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97348 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Vous vous trompez de ficher dans la vue il faut éditer "quantity".
Dans listing price, ce serait pour cacher le prix.

Si c'est en effet ce que vous souhaitez faire, le plus simple est d'éditer la vue qui appel "listing_price", par exemple dans la vue "listing_img_title", ajouter le if autour de: Code:

if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97369](#97369) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97369 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

en effet, je cherche a cacher le prix aux non enregistrés

j'ai procédé ainsi sur la vue product/listing_img_title

}
&lt;?php if(hikashop_loadUser() != null){ ?&gt;
if($this-&gt;params-&gt;get('show_price')){
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
&lt;?php } ?&gt;
}

mais ca ne marche pas :huh:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#97395](#97395) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97395 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Êtes vous sûr d'utiliser ce type de listing ?
Editez vous dans le bon template ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97400](#97400) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97400 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

en effet, ca n'etait pas le bon template, je l'avais changé dans gantry la premiere fois
je l'ai sur mon template ''clarion''
mais voici le message d'erreur lorsque je j'essaye d'accéder a une catégorie
désolé je suis nul en php et je ne suis pas en mesure de trouver la solution par moi même
[ ![Capture&#95;dcran&#95;2013-04-02&#95;&#95;17&#95;13&#95;15.png](/forum/attachment/9460) ](/forum/attachment/9460 "...&#95;&#95;17&#95;13&#95;15.png")

- [ ![Capture&#95;dcran&#95;2013-04-02&#95;&#95;17&#95;13&#95;15.png](/forum/attachment/9460) ](/forum/attachment/9460 "...&#95;&#95;17&#95;13&#95;15.png") [ ](/forum/attachment/9460?download=1 "...&#95;&#95;17&#95;13&#95;15.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#97484](#97484) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97484 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Vous avez probablement oublié des ";" quelque part, ou bien ajouté un espace entre "&lt;" et "?php", merdci de nous copier les lignes 42 &amp; 43 &amp; 44 de cette vue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97521](#97521) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97521 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

[ ![Capture&#95;dcran&#95;2013-04-03&#95;&#95;13&#95;51&#95;46.png](/forum/attachment/9475) ](/forum/attachment/9475 "...&#95;&#95;13&#95;51&#95;46.png")

- [ ![Capture&#95;dcran&#95;2013-04-03&#95;&#95;13&#95;51&#95;46.png](/forum/attachment/9475) ](/forum/attachment/9475 "...&#95;&#95;13&#95;51&#95;46.png") [ ](/forum/attachment/9475?download=1 "...&#95;&#95;13&#95;51&#95;46.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago -  13 years 7 months ago [\#97534](#97534) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97534 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Vous fermez les balises php alors que le code entre le if(hikashop_loadUser() != null{ est du php.
Code:

} &lt;?php if(hikashop_loadUser() != null){ if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } }

Last edit: 13 years 7 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago -  13 years 7 months ago [\#97541](#97541) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97541 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

oui en effet...bien sur cela marche maintenant, merci beaucoup :lol:

toujours avec if(hikashop_loadUser() != null){
pouvez vous me donner le code PHP pour y mettre le prix constaté (a la place du prix d'achat)
je suppose la même chose que pour &lt;!--product price--&gt; mais je connais pas le terme que vous utilisé pour prix constaté

Last edit: 13 years 7 months ago by [xav](/forum/user/14683-xav "View xav's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago -  13 years 7 months ago [\#97566](#97566) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97566 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Le prix constaté est dans la variable "$this-&gt;row-&gt;product_msrp" mais il faut avoir défini le prix dans la page d'édition du produit.

Pour afficher ce prix aux utilisateurs non enregistrés il faut utiliser: Code:

&lt;?php if(hikashop_loadUser() == null){ echo $this-&gt;row-&gt;product_msrp; } ?&gt;

Last edit: 13 years 7 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97640](#97640) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97640 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

cela est il bien a inclure a &lt;!--product price--&gt; du product/listing_img_title ?
car ainsi fait ca donne rien.

- [ ![Capture&#95;dcran&#95;2013-04-04&#95;&#95;07&#95;56&#95;19.png](/forum/attachment/9485) ](/forum/attachment/9485 "...&#95;&#95;07&#95;56&#95;19.png") [ ](/forum/attachment/9485?download=1 "...&#95;&#95;07&#95;56&#95;19.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#97741](#97741) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97741 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

Vous pouvez l'utiliser en dessous du code précédent, tel que: Code:

} if(hikashop_loadUser() != null){ if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } } if(hikashop_loadUser() == null){ echo $this-&gt;row-&gt;product_msrp; }

Cela va l'afficher pour les utilisateurs non enregistrés, pour les enregistrés changer "hikashop_loadUser() == null" en "hikashop_loadUser() != null".
Il faut bien évidement avoir saisi une valeur dans le champs msrp de la page d'édition d'un produit. (fonction disponible depuis la 2.1.1).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago -  13 years 7 months ago [\#97748](#97748) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97748 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

merci xavier
j'avais déja tenté cela, mais je pensais me tromper en voyant le resultat que cela donne
mais comme d'aprés toi c'est bine la bonne chose a faire alors je me permet de mettre en PJ le probléme d'affichage.
comme resoudre cela?

[ ![Capture&#95;dcran&#95;2013-04-04&#95;&#95;16&#95;38&#95;00.png](/forum/attachment/9493) ](/forum/attachment/9493 "...&#95;&#95;16&#95;38&#95;00.png")

- [ ![Capture&#95;dcran&#95;2013-04-04&#95;&#95;16&#95;38&#95;00.png](/forum/attachment/9493) ](/forum/attachment/9493 "...&#95;&#95;16&#95;38&#95;00.png") [ ](/forum/attachment/9493?download=1 "...&#95;&#95;16&#95;38&#95;00.png")

Last edit: 13 years 7 months ago by [xav](/forum/user/14683-xav "View xav's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago -  13 years 7 months ago [\#97831](#97831) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97831 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

J'ai simplement donné la variable qui contient le prix. Après il faut le mettre en forme. Code:

if(hikashop_loadUser() == null){ ?&gt; &lt;span class="hikashop_product_price_full"&gt; &lt;?php echo JText::_('PRODUCT_MSRP'); ?&gt; &lt;span class="hikashop_product_price"&gt; &lt;?php $currencyHelper = hikashop_get('class.currency'); echo $currencyHelper-&gt;format($this-&gt;row-&gt;product_msrp,'1'); ?&gt; &lt;/span&gt; &lt;/span&gt; &lt;?php }

Généralement on ne fournit pas de code de ce genre lors de customisations. Ce forum est pour aider lors de problèmes de configuration ou lorsqu'il y a des bugs.
Mais il n'est pas là pour les customisations. Merci de votre compréhension.

Last edit: 13 years 7 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

The following user(s) said Thank You: [xav](/forum/user/14683-xav "View xav's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[xav](/forum/user/14683-xav "View xav's Profile")**
- [![xav's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14683-xav "View xav's Profile")
- [ Offline](/forum/user/14683-xav)

Less More

- Posts: 167
- Thank you received: 2
-
-

13 years 7 months ago [\#97851](#97851) by [xav](/forum/user/14683-xav "View xav's Profile")  Replied by *[xav](/forum/user/14683-xav "View xav's Profile")* on topic *[Ajout panier seulement pour les enregistrés ?](/forum/5-support-en-francais-french-support-/76659-ajout-panier-seulement-pour-les-enregistres#97851 "Bonsoir  J'ai pas trouvé le truc possible d'avoir avec la version starter la visu d'ajout au panier et la visu des stocks seulement pour les personnes enregistrées ?  merci  cordialement  Bertrand")*

oui je comprends tout a fait ![;)](/media/kunena/emoticons/24.png ";)")
nul doute qu'il servira pour d'autre qui ne savent pas coder le php
merci beaucoup.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzY2NTktYWpvdXQtcGFuaWVyLXNldWxlbWVudC1wb3VyLWxlcy1lbnJlZ2lzdHJlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.112 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
