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

#   Enregistrement de champs personnalisé

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

13 years 2 months ago [\#118762](#118762) by [mobidiff](/forum/user/26538-mobidiff "View mobidiff's Profile")  *[Enregistrement de champs personnalisé](/forum/27-checkout/861085-enregistrement-de-champs-personnalise#118762 "Bonjour,  J'ai rajouté des champs personnalisés dans les tables order et user et mis dans la vue CART: product&#95;code; ?&gt; credits = $&#95;SESSION + $row-&gt;product&#95;code; $row-&gt;credits&#95;cmd = $row-&gt;product&#95;code; ?&gt;  Je veux enregistrer credits&#95;cmd dans la table commande et credits dans la table user. Quand je verifie la bdd, les champs sont toujours vide (null)...  Merci de vos conseils !  Daniel  -- url of the page with the problem -- :   sms-mobidiff.com  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome")* was created by *[mobidiff](/forum/user/26538-mobidiff "View mobidiff's Profile")*

Bonjour,

J'ai rajouté des champs personnalisés dans les tables order et user et mis dans la vue CART:
&lt;span class="hikashop_product_code_checkout"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;
&lt;?php }
$row-&gt;credits = $_SESSION + $row-&gt;product_code;
$row-&gt;credits_cmd = $row-&gt;product_code;
?&gt;

Je veux enregistrer credits_cmd dans la table commande et credits dans la table user.
Quand je verifie la bdd, les champs sont toujours vide (null)...

Merci de vos conseils !

Daniel

-- url of the page with the problem -- : [ sms-mobidiff.com](http://sms-mobidiff.com)
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Chrome

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTA4NS1lbnJlZ2lzdHJlbWVudC1kZS1jaGFtcHMtcGVyc29ubmFsaXNlP3RtcGw9bWFya2Rvd24=) 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 2 months ago [\#118791](#118791) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Enregistrement de champs personnalisé](/forum/27-checkout/861085-enregistrement-de-champs-personnalise#118791 "Bonjour,  J'ai rajouté des champs personnalisés dans les tables order et user et mis dans la vue CART: product&#95;code; ?&gt; credits = $&#95;SESSION + $row-&gt;product&#95;code; $row-&gt;credits&#95;cmd = $row-&gt;product&#95;code; ?&gt;  Je veux enregistrer credits&#95;cmd dans la table commande et credits dans la table user. Quand je verifie la bdd, les champs sont toujours vide (null)...  Merci de vos conseils !  Daniel  -- url of the page with the problem -- :   sms-mobidiff.com  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome")*

Bonjour,

C'est normal qu'ils soient vide, les valeurs du formulaire sont passées en POST, donc la modification de la valeur en dur ne change rien.

Ce qu'il faudrait faire à la limite c'est ajouter les valeurs dans ces champs en javascript, et cacher au préalable ces champs en css. Comme ça l'utilisateur ne peut pas changer ces valeurs, et comme vous les remplissez, elles sont enregistrées correctement.

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

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

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

[](#top)
