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

#   Champs personnalisés et inscription

##

- **[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")**
- [![must&#95;de&#95;cartier's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile") Topic Author
- [ Offline](/forum/user/35751-must-de-cartier)

Less More

- Posts: 68
- Thank you received: 0
-
-

10 years 5 months ago -  10 years 5 months ago [\#238359](#238359) by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")  *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#238359 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")* was created by *[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5.34

Bonjour

j'utilise un certain nombre de champs personnalisés à l'inscription.
j'aimerai que dans le mail de "Demande d'activation de compte à l'administrateur" apparaissent les valeurs renseignés dans ceux-ci.
Comment faire ?

Merci !

Last edit: 10 years 5 months ago by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile").

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

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 5 months ago [\#238372](#238372) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#238372 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour,

C'est soit:
&lt;?php echo $data-&gt;user_data-&gt;column_name; ?&gt;
ou:
&lt;?php echo $data-&gt;address_data-&gt;column_name; ?&gt;
que vous pouvez ajouter dans l'email "user account" via le menu Systeme&gt;Emails en fonction de si le champs personnalisé est de la table "user" ou "address".
Enfin, n'oubliez pas de remplacer column_name par le nom de colonne de votre champs personnalisé.

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

- **[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")**
- [![must&#95;de&#95;cartier's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile") Topic Author
- [ Offline](/forum/user/35751-must-de-cartier)

Less More

- Posts: 68
- Thank you received: 0
-
-

10 years 5 months ago [\#238788](#238788) by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")  Replied by *[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#238788 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Merci Nicolas

Ca marche parfaitement merci. Mais j'ai un souci encore. Les champs personnalisés en question sont de type "liste simple" et le résultat de votre commande ne donne que la valeur de la variable et non sa correspondance. Comment dois-je adapter cela ?

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

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 5 months ago [\#238812](#238812) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#238812 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour,

dans ce cas, il faut faire ainsi: Code:

&lt;?php $fieldsClass = hikashop_get('class.fields'); $null = null; $fields = $fieldsClass-&gt;getFields('all',$null,'user'); // ou address echo $fieldsClass-&gt;show($fields['column_name'], $data-&gt;user_data-&gt;column_name); ?&gt;

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

- **[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")**
- [![must&#95;de&#95;cartier's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile") Topic Author
- [ Offline](/forum/user/35751-must-de-cartier)

Less More

- Posts: 68
- Thank you received: 0
-
-

10 years 5 months ago [\#239544](#239544) by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")  Replied by *[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#239544 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour Nicolas

Désolé de ma réponse tardive à votre dernière contribution.
Malheureusement ça ne marche pas.
Voici le code saisi Code:

&lt;?php $fieldsClass = hikashop_get('class.fields'); $null = null; $fields = $fieldsClass-&gt;getFields('user_entitederattachement',$null,'user'); echo $fieldsClass-&gt;show($fields['user_entitederattachement'], $data-&gt;user_data-&gt;user_entitederattachement); ?&gt;

J'obtiens une erreur 0 : Call to a member function getFields() on null
It appears that the page you were looking for does not exist.

Qu'est-ce que j'ai mal fait ?
Plus encore, je dois aussi afficher **conjointement** le champ user_startingdate qui est de type date. Comment afficher celui-ci au format JJ/MM/AAAA ?

Merci encore Nicolas.

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

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 5 months ago [\#239552](#239552) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#239552 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour,

L'erreur "Call to a member function getFields() on null" indique que la variable fieldsClass est vide alors qu'elle devrait contenir une instance de class.fields.
Dans ce cas, cela indique normalement un problème de faute de frappe avec la variable utilisée pour l'appel de getFields différente de celle utilisée dans l'initialisation de class.fields dans votre code.
Donc je suppose que ce que vous avez mis dans votre message ne correspond pas exactement à ce que vous avez dans votre PHP car la variable à un nom identique dans votre message.

Le champs s'affiche automatiquement avec les options du champs si vous utilisez le code ci-dessus, et dans les options du champs, il y a une option pour le format de la date normalement.

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

- **[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")**
- [![must&#95;de&#95;cartier's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile") Topic Author
- [ Offline](/forum/user/35751-must-de-cartier)

Less More

- Posts: 68
- Thank you received: 0
-
-

10 years 5 months ago -  10 years 5 months ago [\#239677](#239677) by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")  Replied by *[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#239677 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour Nicolas

Il ne peut y avoir de faute de frappe, il s'agit d'un copier/coller de ce que j'ai mis dans le mail "Notification de création de compte utilisateur à l'administrateur" tant au niveau de la version html que celle de la version texte.
Une explication ?

Je précise que le code précédent fonctionnait Code:

&lt;?php echo $data-&gt;user_data-&gt;user_entitederattachement; ?&gt;

Last edit: 10 years 5 months ago by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile").

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

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 5 months ago [\#239692](#239692) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#239692 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Bonjour,

Désolé, l'erreur est de mon coté.
C'est:
$fieldsClass = hikashop_get('class.field');
qu'il faut utiliser, sans le "s".

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

- **[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")**
- [![must&#95;de&#95;cartier's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile") Topic Author
- [ Offline](/forum/user/35751-must-de-cartier)

Less More

- Posts: 68
- Thank you received: 0
-
-

10 years 5 months ago [\#239814](#239814) by [must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")  Replied by *[must\_de\_cartier](/forum/user/35751-must-de-cartier "View must&#95;de&#95;cartier's Profile")* on topic *[\[Réglé\] Champs personnalisés et inscription](/forum/5-support-en-francais-french-support-/884175-champs-personnalises-et-inscription#239814 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.34  Bonjour  j'utilise un certain nombre de champs personnalisés à l'inscription. j'aimerai que dans le mail de &quot;Demande d'activation de compte à l'administrateur&quot; apparaissent les valeurs renseignés dans ceux-ci. Comment faire ?  Merci !")*

Ça marche parfaitement. Merci !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg0MTc1LWNoYW1wcy1wZXJzb25uYWxpc2VzLWV0LWluc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) 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.279 seconds

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

[](#top)
