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

#   Display content of customfield on checkout

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 8 months ago [\#192084](#192084) by [cobi](/forum/user/36084-cobi "View cobi's Profile")  *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192084 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")* was created by *[cobi](/forum/user/36084-cobi "View cobi's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

okay it's a simple thing, but I don't know how?

my goal: Give Customer **manual**  a customer ID and show this ID at the checkout page at the status section.

Here is what I've done:

1) I setup a custom-field called "kundennummer" (in english customer-id) see the screenshot

2) I put into the customer field manualy a number like: 123456789

3) To get it to the status section I tried to edit the "checkout / status.php" but I do not know what code i have to use to display the customer-id (custom-field)????

here is the code of the checkout / status.php where do I have to put wich code?
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.5 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;br/&gt; &lt;span id="hikashop_checkout_status"&gt; &lt;?php $array = array(); if(!empty($this-&gt;shipping_data)) { $names = array(); foreach($this-&gt;shipping_data as $shipping) { $names[] = $shipping-&gt;shipping_name; } $array[] = JText::sprintf('HIKASHOP_SHIPPING_METHOD_CHOSEN', '&lt;span class="label label-info"&gt;'.implode(', ', $names).'&lt;/span&gt;'); } if(!empty($this-&gt;payment_data)) { $array[]= JText::sprintf('HIKASHOP_PAYMENT_METHOD_CHOSEN', '&lt;span class="label label-info"&gt;'.$this-&gt;payment_data-&gt;payment_name.'&lt;/span&gt;'); } echo implode('&lt;br/&gt;', $array); ?&gt; &lt;/span&gt; &lt;div class="clear_both"&gt;&lt;/div&gt;

- [ ![storefront&#95;cobinet&#95;-&#95;Administration&#95;-&#95;Field&#95;&#95;&#95;kundennummer.png](/forum/attachment/22635) ](/forum/attachment/22635 "...ndennummer.png") [ ](/forum/attachment/22635?download=1 "...ndennummer.png")
- [ ![storefront&#95;cobinet&#95;-&#95;Administration&#95;-&#95;User.png](/forum/attachment/22636) ](/forum/attachment/22636 "...ion&#95;-&#95;User.png") [ ](/forum/attachment/22636?download=1 "...ion&#95;-&#95;User.png")
- [ ![checkout.png](/forum/attachment/22637) ](/forum/attachment/22637 "checkout.png") [ ](/forum/attachment/22637?download=1 "checkout.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTIyNy1kaXNwbGF5LWNvbnRlbnQtb2YtY3VzdG9tZmllbGQtb24tY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 8 months ago [\#192090](#192090) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192090 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")*

Hi,

You can use such kind of code: Code:

$user = hikashop_loadUser(true); if($user != null) echo $user-&gt;kundennummer;

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 8 months ago [\#192182](#192182) by [cobi](/forum/user/36084-cobi "View cobi's Profile")  Replied by *[cobi](/forum/user/36084-cobi "View cobi's Profile")* on topic *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192182 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")*

Hey Xavier,

i knew we met again. This time everything works like a charme from the begining.

Thx again for your fast support.

You guys rocks - realy!

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 8 months ago [\#192213](#192213) by [cobi](/forum/user/36084-cobi "View cobi's Profile")  Replied by *[cobi](/forum/user/36084-cobi "View cobi's Profile")* on topic *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192213 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")*

Hey Xavier,

one more question. I need the the custom field "kundennummer" even inside the order email. How do i make this happen? Any ideas?

Greetings
Cobi

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTIyNy1kaXNwbGF5LWNvbnRlbnQtb2YtY3VzdG9tZmllbGQtb24tY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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)
-

11 years 8 months ago [\#192221](#192221) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192221 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")*

Hi,

You can edit the emails via the menu System &gt; Emails, for business edition or via FTP in the folder "media/com_hikashop/mail".
Be careful, if you do the modifications via FTP, when updating the changes will be lost.

Then in the html part of the email you can use this kind of code to display the value: Code:

&lt;?php if(isset($data-&gt;customer-&gt;kundennummer)){ echo $data-&gt;customer-&gt;kundennummer; } ?&gt;

In the next release you will be able to simply use the tag: Code:

{VAR:user.kundennummer}

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 8 months ago -  11 years 8 months ago [\#192331](#192331) by [cobi](/forum/user/36084-cobi "View cobi's Profile")  Replied by *[cobi](/forum/user/36084-cobi "View cobi's Profile")* on topic *[Display content of customfield on checkout](/forum/27-checkout/875227-display-content-of-customfield-on-checkout#192331 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  okay it's a simple thing, but I don't know how?  my goal: Give Customer manual  a customer ID and show this ID at the checkout page at the status section.  Here is what I've done:  1) I setup a custom-field called &quot;kundennummer&quot; (in english customer-id) see the screenshot  2) I put into the customer field manualy a number like: 123456789  3) To get it to the status section I tried to edit the &quot;checkout / status.php&quot; but I do not know what code i have to use to display the customer-id (custom-field)????  here is the code of the checkout / status.php where do I have to put wich code?")*

Hey Xavier,

if i could I would give you a big hug. everything is working like us said. thx so much

I appreciate your awesome support

Last edit: 11 years 8 months ago by [cobi](/forum/user/36084-cobi "View cobi's Profile").

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

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