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

#   Default value on order custom field doesn't work

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 643
- Thank you received: 26
-
-
-

8 years 7 months ago [\#291194](#291194) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[Default value on order custom field doesn't work](/forum/35-orders-management/894416-default-value-on-order-custom-field-doesnt-work#291194 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7  Hi,  We have created several custom fields for the table order. We have filled in default values, but when a order is created the custom fields are empty.  See screenshot for the field (order&#95;ups&#95;nr&#95;of&#95;packages) for example:  As you can see there is no value on the custom fields at the additional information.  Only when we click on the edit button (at number 1) from the additional information we see the default values. So we have to save them first before they are visible in the order.  So my question is: Is this normal behavior? And is it possible to get these values standard in the order so we don't have to edit and save the additional information to get those values into the order?  We need these values for an CSV export for UPS WorldShip, so it's not workable to edit and save all the orders with standard values before we can make the export.  I hope you have a solution for this.  Kind regards, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7

Hi,

We have created several custom fields for the table order.
We have filled in default values, but when a order is created the custom fields are empty.

See screenshot for the field (order_ups_nr_of_packages) for example:

[ ![screenshot-238.jpg](/forum/attachment/43318) ](/forum/attachment/43318 "...enshot-238.jpg")

As you can see there is no value on the custom fields at the additional information.

[ ![screenshot-239.jpg](/forum/attachment/43319) ](/forum/attachment/43319 "...enshot-239.jpg")

Only when we click on the edit button (at number 1) from the additional information we see the default values. So we have to save them first before they are visible in the order.

[ ![screenshot-240.jpg](/forum/attachment/43320) ](/forum/attachment/43320 "...enshot-240.jpg")

So my question is: Is this normal behavior? And is it possible to get these values standard in the order so we don't have to edit and save the additional information to get those values into the order?

We need these values for an CSV export for UPS WorldShip, so it's not workable to edit and save all the orders with standard values before we can make the export.

I hope you have a solution for this.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

- [ ![screenshot-238.jpg](/forum/attachment/43318) ](/forum/attachment/43318 "...enshot-238.jpg") [ ](/forum/attachment/43318?download=1 "...enshot-238.jpg")
- [ ![screenshot-239.jpg](/forum/attachment/43319) ](/forum/attachment/43319 "...enshot-239.jpg") [ ](/forum/attachment/43319?download=1 "...enshot-239.jpg")
- [ ![screenshot-240.jpg](/forum/attachment/43320) ](/forum/attachment/43320 "...enshot-240.jpg") [ ](/forum/attachment/43320?download=1 "...enshot-240.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NDQxNi1kZWZhdWx0LXZhbHVlLW9uLW9yZGVyLWN1c3RvbS1maWVsZC1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

8 years 7 months ago [\#291196](#291196) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Default value on order custom field doesn't work](/forum/35-orders-management/894416-default-value-on-order-custom-field-doesnt-work#291196 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7  Hi,  We have created several custom fields for the table order. We have filled in default values, but when a order is created the custom fields are empty.  See screenshot for the field (order&#95;ups&#95;nr&#95;of&#95;packages) for example:  As you can see there is no value on the custom fields at the additional information.  Only when we click on the edit button (at number 1) from the additional information we see the default values. So we have to save them first before they are visible in the order.  So my question is: Is this normal behavior? And is it possible to get these values standard in the order so we don't have to edit and save the additional information to get those values into the order?  We need these values for an CSV export for UPS WorldShip, so it's not workable to edit and save all the orders with standard values before we can make the export.  I hope you have a solution for this.  Kind regards, Lumiga")*

Hi,

It's normal. That's because you didn't activate the display of the custom field on the checkout.
If you activate it (and hide it with CSS if you don't want your customers to see it), then you'll get the default value in the orders when they are created.

Alternatively, it's also easy to create a mass action to set that value when orders are created:
[ www.hikashop.com/support/documentation/167-massaction-form.html](https://www.hikashop.com/support/documentation/167-massaction-form.html)

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 643
- Thank you received: 26
-
-
-

8 years 7 months ago [\#291245](#291245) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Default value on order custom field doesn't work](/forum/35-orders-management/894416-default-value-on-order-custom-field-doesnt-work#291245 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7  Hi,  We have created several custom fields for the table order. We have filled in default values, but when a order is created the custom fields are empty.  See screenshot for the field (order&#95;ups&#95;nr&#95;of&#95;packages) for example:  As you can see there is no value on the custom fields at the additional information.  Only when we click on the edit button (at number 1) from the additional information we see the default values. So we have to save them first before they are visible in the order.  So my question is: Is this normal behavior? And is it possible to get these values standard in the order so we don't have to edit and save the additional information to get those values into the order?  We need these values for an CSV export for UPS WorldShip, so it's not workable to edit and save all the orders with standard values before we can make the export.  I hope you have a solution for this.  Kind regards, Lumiga")*

Hi Nicolas,

Now I have activated the custom field to the checkout as you see in this screenshot.
It was not needed to hide this fields with CSS because we turned them off for the frontend.
But still the default values are not been added to the order when we create a new order.

[ ![screenshot-242.jpg](/forum/attachment/43326) ](/forum/attachment/43326 "...enshot-242.jpg")

---

Kind regards,
Lumiga

- [ ![screenshot-242.jpg](/forum/attachment/43326) ](/forum/attachment/43326 "...enshot-242.jpg") [ ](/forum/attachment/43326?download=1 "...enshot-242.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NDQxNi1kZWZhdWx0LXZhbHVlLW9uLW9yZGVyLWN1c3RvbS1maWVsZC1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

8 years 7 months ago [\#291249](#291249) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Default value on order custom field doesn't work](/forum/35-orders-management/894416-default-value-on-order-custom-field-doesnt-work#291249 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7  Hi,  We have created several custom fields for the table order. We have filled in default values, but when a order is created the custom fields are empty.  See screenshot for the field (order&#95;ups&#95;nr&#95;of&#95;packages) for example:  As you can see there is no value on the custom fields at the additional information.  Only when we click on the edit button (at number 1) from the additional information we see the default values. So we have to save them first before they are visible in the order.  So my question is: Is this normal behavior? And is it possible to get these values standard in the order so we don't have to edit and save the additional information to get those values into the order?  We need these values for an CSV export for UPS WorldShip, so it's not workable to edit and save all the orders with standard values before we can make the export.  I hope you have a solution for this.  Kind regards, Lumiga")*

Hi,

> It was not needed to hide this fields with CSS because we turned them off for the frontend.

My point was precisely to have them displaying on the checkout... So if you turn them off for the frontend, it defeats the purpose.
Turn them on for the frontend so that you can see them on the checkout, hide them with CSS if you want, and you'll see that it will work.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

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