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

#   Insert date and time collection when ordering

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

6 years 6 months ago [\#317403](#317403) by [Rudynelen](/forum/user/8110-rudynelen "View Rudynelen's Profile")  *[Insert date and time collection when ordering](/forum/27-checkout/899530-insert-date-and-time-collection-when-ordering#317403 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.28 -- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering  Hey, I have made a webshop for pickups from a bakery. If there are customers ordering, I would have liked to add the pickup date and time. Where can I do that and how do I do that?")* was created by *[Rudynelen](/forum/user/8110-rudynelen "View Rudynelen's Profile")*

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2.28
-- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering

Hey,
I have made a webshop for pickups from a bakery.
If there are customers ordering, I would have liked to add the pickup date and time.
Where can I do that and how do I do that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5OTUzMC1pbnNlcnQtZGF0ZS1hbmQtdGltZS1jb2xsZWN0aW9uLXdoZW4tb3JkZXJpbmc/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14293
-
-

6 years 6 months ago [\#317419](#317419) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert date and time collection when ordering](/forum/27-checkout/899530-insert-date-and-time-collection-when-ordering#317419 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.28 -- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering  Hey, I have made a webshop for pickups from a bakery. If there are customers ordering, I would have liked to add the pickup date and time. Where can I do that and how do I do that?")*

Hi,

You can create custom fields of the table "order" via the menu Display&gt;Custom fields. You can have one of the type "advanced date picker" for the date selection, and one of the type "single dropdown" for the selection of the time.
Note that I see you have the Essential edition, but custom order fields are only available with the Business edition. So you would have to upgrade to be able to do that :
[ www.hikashop.com/extensions/upgrade-my-version.html](https://www.hikashop.com/extensions/upgrade-my-version.html)
After you've created the custom order fields, they will be displayed by the "Fields" view in your "Checkout workflow". So make sure you didn't remove that view from it.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

6 years 6 months ago [\#317473](#317473) by [jbvieren](/forum/user/30535-jbvieren "View jbvieren's Profile")  Replied by *[jbvieren](/forum/user/30535-jbvieren "View jbvieren's Profile")* on topic *[Insert date and time collection when ordering](/forum/27-checkout/899530-insert-date-and-time-collection-when-ordering#317473 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.28 -- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering  Hey, I have made a webshop for pickups from a bakery. If there are customers ordering, I would have liked to add the pickup date and time. Where can I do that and how do I do that?")*

Hi
I use a custom field to do that.
I configured it to propose only dates in the future and only Fridays and Saturdays.
It works pretty well (I can create an account for you if you want to see my website config).
You can also specify some forbidden dates.

I add a question here about a special need :
I'd like to be able to EDIT an order, and modify the date (even by selecting a date that the customer could not choose : in the past or a forbidden date for example).
But even an admin has the same constraints on this field.
Does anybody has an idea or a workaround to edit that field without updating in the database, or modifying temporarily the custom field configuration ?

thanks

---

-Hikashop 2.3.0-

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5OTUzMC1pbnNlcnQtZGF0ZS1hbmQtdGltZS1jb2xsZWN0aW9uLXdoZW4tb3JkZXJpbmc/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14293
-
-

6 years 6 months ago [\#317484](#317484) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert date and time collection when ordering](/forum/27-checkout/899530-insert-date-and-time-collection-when-ordering#317484 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.28 -- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering  Hey, I have made a webshop for pickups from a bakery. If there are customers ordering, I would have liked to add the pickup date and time. Where can I do that and how do I do that?")*

Hi,

You would have to modify the code in the file plugins/hikashop/datepickerfield/datepickerfield_class.php
There, you would need to modify each place (4 places) you have the code: Code:

['allow'] == 'future'

At each place, you'll have to check if you're in the backend or not.
It can be done with the hikashop_isClient('administrator') function call.
So with a bit of programming it's possible. However, note that you'll loose your changes when you update HikaShop.
Thus, the best would be to make a copy of that plugin and rename it differently (similarly the plugin code needed to be updated here and there) so that you would be safe in the long run with that change.

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

6 years 6 months ago [\#317720](#317720) by [jbvieren](/forum/user/30535-jbvieren "View jbvieren's Profile")  Replied by *[jbvieren](/forum/user/30535-jbvieren "View jbvieren's Profile")* on topic *[Insert date and time collection when ordering](/forum/27-checkout/899530-insert-date-and-time-collection-when-ordering#317720 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.28 -- Error-message(debug-mod must be tuned on) -- : Insert date and time collection when ordering  Hey, I have made a webshop for pickups from a bakery. If there are customers ordering, I would have liked to add the pickup date and time. Where can I do that and how do I do that?")*

Hi Nicolas
it works fine !
thanks

---

-Hikashop 2.3.0-

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

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