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

#   Custom product/order field: can this be set by the system?

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

10 years 1 week ago -  10 years 1 week ago [\#254764](#254764) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  *[Custom product/order field: can this be set by the system?](/forum/26-product-category-display/887378-custom-product-order-field-can-this-be-set-by-the-system#254764 "I have a client trying to do online bookings for events with a lot of different dates, so it isn't a desirable solution to create a hika characteristic for each date because some dates become...")* was created by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")*

I have a client trying to do online bookings for events with a lot of different dates, so it isn't a desirable solution to create a hika characteristic for each date because some dates become unavailable over time or don't apply to certain products.

I was wondering if there is a way to create a custom field, which is set by the system based on a custom script and the user cannot change this field but can see it. The field would be displayed in the checkout as well as in the backend during order processing.

In your documentation there appears to be something like this in the business edition ("order custom field"?). Can this be configured to be unchangeable by the customer but changeable when placing an order?

Example:
30 events are added as products and each has its own set of date/times. Instead of setting up a characteristic for each event/date, an external database would contain all the events and dates, and a custom script would list these dates on the event/product page. The client would pick a date and the script/system would append this selection to the order as a custom field, which is displayed during checkout and backend.

ie. "Some Concert" occurs on "November 9, 10, 11". Customer picks November 10 and hits add-to-cart, when this is done, the script appends "November 10" to the custom field for the concert. During checkout, the customer sees something like "Some concert: November 10" and in the backend, the staff sees "some concert" with the custom field = "November 10"

Last edit: 10 years 1 week ago by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 1 week ago [\#254776](#254776) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom product/order field: can this be set by the system?](/forum/26-product-category-display/887378-custom-product-order-field-can-this-be-set-by-the-system#254776 "I have a client trying to do online bookings for events with a lot of different dates, so it isn't a desirable solution to create a hika characteristic for each date because some dates become...")*

Hi,

That is a really big question and there is a lot to talk about.

First, there is a the custom field documentation page which will describe the different types.
[ www.hikashop.com/support/documentation/1...shop-field-form.html](https://www.hikashop.com/support/documentation/10-documentation/hikashop/42-hikashop-field-form.html)

After that, there is a documentation more oriented as a tutorial :
[ www.hikashop.com/support/documentation/1...p-field-listing.html](https://www.hikashop.com/support/documentation/10-documentation/hikashop/288-hikashop-field-listing.html)

So yes, with HikaShop business you will have access to "item" and "order" custom field which allow the customer to provide details about the "order product" or the "order".
If you do not have HikaShop business, that feature won't be available.

Thanks to custom plugin ; you can create new kind of custom field. You can find example like the "advanced date picker".
It allows you to have more complexe interface for the custom field and to handle both display (edition part and simple display part).
When you're using a custom plugin to create new kind of field ; the call give you basic details and you can access to the "order product" (or cart product) object or to the "order" (or cart) object.
Thanks to these objects, you can check the order details, the customer and do some SQL query to get the data you need.

Regarding a "booking" system ; it will be better to use an "item" custom field so you can attach the data information to the product itself. So if the customer want to reserve for two different "dates", it will be possible.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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