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

#   Undefined index: field\_default

##

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 7 months ago [\#97710](#97710) by [SG](/forum/user/12204-sg "View SG's Profile")  *[Undefined index: field\_default](/forum/3-bug-report/80017-undefined-index-field-default#97710 "Hi,  I'm trying to make for the first time a Custom Text field for the table order. This is the message I got when I tried to save it.  Here is the printscreen of the config window when saved:  &#91;image&#93;  Why do I get this message? Is the field saved correctly or didn't the process get completed by this error/message?  Thanks")* was created by *[SG](/forum/user/12204-sg "View SG's Profile")*

Hi,

I'm trying to make for the first time a Custom Text field for the table order.
This is the message I got when I tried to save it.

> Notice: Undefined index: field\_default in /home/marcoshp/public\_html/site/administrator/components/com\_hikashop/classes/field.php on line 904 Notice: Undefined index: field\_default in /home/marcoshp/public\_html/site/administrator/components/com\_hikashop/classes/field.php on line 915

Here is the printscreen of the config window when saved:

[ ![&#91;IMG](http://i50.tinypic.com/30aav7d.jpg) ](http://i50.tinypic.com/30aav7d.jpg "&#91;IMG")

Why do I get this message?
Is the field saved correctly or didn't the process get completed by this error/message?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDAxNy11bmRlZmluZWQtaW5kZXgtZmllbGQtZGVmYXVsdD90bXBsPW1hcmtkb3du) 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 [\#97755](#97755) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Undefined index: field\_default](/forum/3-bug-report/80017-undefined-index-field-default#97755 "Hi,  I'm trying to make for the first time a Custom Text field for the table order. This is the message I got when I tried to save it.  Here is the printscreen of the config window when saved:  &#91;image&#93;  Why do I get this message? Is the field saved correctly or didn't the process get completed by this error/message?  Thanks")*

Hi,

Thanks for the report. We have corrected it on our end.
Don't worry your custom field is saved correctly.

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 7 months ago [\#97768](#97768) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Undefined index: field\_default](/forum/3-bug-report/80017-undefined-index-field-default#97768 "Hi,  I'm trying to make for the first time a Custom Text field for the table order. This is the message I got when I tried to save it.  Here is the printscreen of the config window when saved:  &#91;image&#93;  Why do I get this message? Is the field saved correctly or didn't the process get completed by this error/message?  Thanks")*

Hi Xavier.

Thanks for letting me know.

A side question about **custom text** from the **order** table.
How can I exactly get the content from that field.

I tried the following and I **CAN** get the **full\_price and order\_number** but **NOT** the **custom text field**.
Code:

$order_id = $data-&gt;order_id; $orderClass = hikashop_get('class.order'); $order = $orderClass-&gt;loadFullOrder($order_id,false, false); echo "&lt;br&gt;Order_number: ".$order-&gt;order_number; echo "&lt;br&gt;Order_fullprice: ".$order-&gt;order_full_price; echo "&lt;br&gt;order_custom: ".$order-&gt;customtext_93_13_25_34."&lt;br&gt;"; print_r($order);

When i use print_r I can see most order_ fields but not the custom text field.
Also in the database I can find it under _hikashop_field but NOT in _hikashop_order

The main reason I was trying to use this custom text field was to add custom intro text in the message.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDAxNy11bmRlZmluZWQtaW5kZXgtZmllbGQtZGVmYXVsdD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 7 months ago [\#97774](#97774) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Undefined index: field\_default](/forum/3-bug-report/80017-undefined-index-field-default#97774 "Hi,  I'm trying to make for the first time a Custom Text field for the table order. This is the message I got when I tried to save it.  Here is the printscreen of the config window when saved:  &#91;image&#93;  Why do I get this message? Is the field saved correctly or didn't the process get completed by this error/message?  Thanks")*

"custom text" fields are the only ones which don't have any content. It's normal that you don't see it in the database.
That's because their value is the same for all the elements.
If you want to have a different content for different orders, you should use a "textarea" field instead.

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 7 months ago [\#97778](#97778) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Undefined index: field\_default](/forum/3-bug-report/80017-undefined-index-field-default#97778 "Hi,  I'm trying to make for the first time a Custom Text field for the table order. This is the message I got when I tried to save it.  Here is the printscreen of the config window when saved:  &#91;image&#93;  Why do I get this message? Is the field saved correctly or didn't the process get completed by this error/message?  Thanks")*

Hi,

You are right about that the content stays the same and that it shouldn't be in the order table.
It's logic when you think about it but sometimes my brain get fried when I'm sitting to many hours behind the computer ![:-)](/media/kunena/emoticons/3.png ":-)")

Since I need to add text in the mail I will use something like echo JText::_('EMAIL_INTRO_MESSAGE');
That way I can also translate it ![:-)](/media/kunena/emoticons/3.png ":-)")

If you have a better idea, please feel free to advise.

Thanks.

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

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