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

#   dynamic delivery date and time, depending on shipping mode

##

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

Less More

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

6 years 5 months ago [\#320363](#320363) by [retiro](/forum/user/59571-retiro "View retiro's Profile")  *[dynamic delivery date and time, depending on shipping mode](/forum/27-checkout/900101-dynamic-delivery-date-and-time-depending-on-shipping-mode#320363 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.11 -- Browser(s) name and version -- : any  Hello,  I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:  - Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times - Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)  I want to be able to configure these times offline, not hard code them. How do I proceed? regards")* was created by *[retiro](/forum/user/59571-retiro "View retiro's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.11
-- Browser(s) name and version -- : any

Hello,

I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:

- Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times
- Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)

I want to be able to configure these times offline, not hard code them. How do I proceed?
regards

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 5 months ago -  6 years 5 months ago [\#320385](#320385) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[dynamic delivery date and time, depending on shipping mode](/forum/27-checkout/900101-dynamic-delivery-date-and-time-depending-on-shipping-mode#320385 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.11 -- Browser(s) name and version -- : any  Hello,  I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:  - Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times - Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)  I want to be able to configure these times offline, not hard code them. How do I proceed? regards")*

Hi,

I don't see a way of doing that with the options available.
That would require some development in the core of HikaShop to add an option to be able to restrict the custom field on the shipping methods. That way, you could have two sets of custom fields you could configure independently from one another, with each set restricted to the corresponding shipping method.

Last edit: 6 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

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

6 years 5 months ago [\#320422](#320422) by [retiro](/forum/user/59571-retiro "View retiro's Profile")  Replied by *[retiro](/forum/user/59571-retiro "View retiro's Profile")* on topic *[dynamic delivery date and time, depending on shipping mode](/forum/27-checkout/900101-dynamic-delivery-date-and-time-depending-on-shipping-mode#320422 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.11 -- Browser(s) name and version -- : any  Hello,  I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:  - Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times - Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)  I want to be able to configure these times offline, not hard code them. How do I proceed? regards")*

what about adding API that would allow me to inspect the order status and decide whether a custom field is applicable?

And what about being able to feed selectable dates into the delivery date calendar. Is that possible now, or would it require API similar to the above?

If both is yes, can that API be added? When?

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 5 months ago [\#320435](#320435) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[dynamic delivery date and time, depending on shipping mode](/forum/27-checkout/900101-dynamic-delivery-date-and-time-depending-on-shipping-mode#320435 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.11 -- Browser(s) name and version -- : any  Hello,  I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:  - Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times - Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)  I want to be able to configure these times offline, not hard code them. How do I proceed? regards")*

Hi,

The order status ? I suppose that you mean the shipping method. Because the order status is not yet known on the checkout.

You can already do that with the Fields API :
[ www.hikashop.com/support/documentation/6...entation.html#fields](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#fields)
You can actually look at the plugin plugins/hikashop/datepickerfield/ on your website for an example.
You could do a copy of that plugin to create your own type of date picker custom field. That way, you could feed to the field the selectable dates. And for the restriction to the shipping method, you could do it with the onHikashopBeforeDisplayView trigger
[ www.hikashop.com/support/documentation/6...hopBeforeDisplayView](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onHikashopBeforeDisplayView) to remove fields from the checkout fields view based on the shipping method selected. If the fields are required, you'll also want to change the "check" function of the custom field type to handle the shipping method selected.
You'll have to also add some javascript to force the refresh of the custom field area when the shipping method is changed if they are both on the same step of the checkout. We also have a trigger when the shipping method is changed to allow you to refresh the view area (or maybe just do a full refresh of the page ?) Code:

window.Oby.registerAjax(['checkout.shipping.updated'], function(params){ // shipping method is being changed });

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

7 months 1 week ago [\#371546](#371546) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[dynamic delivery date and time, depending on shipping mode](/forum/27-checkout/900101-dynamic-delivery-date-and-time-depending-on-shipping-mode#371546 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.11 -- Browser(s) name and version -- : any  Hello,  I would like to use custom fields for delivery date and delivery time on my orders. However, I want the customers to only be able to choose from specific times, which should be configurable in the backend and will be different depending on the chosen shipping mode. Specifically, I have the se 2 shipping modes:  - Home delivery: We only deliver on tuesdays and thursdays between 9:00 and 12:00. User should only be able to choose within these times - Pickup on site: We have fixed times where customers can come to our location and pick up the goods, which will then be ready packaged for them already (its all fresh goods)  I want to be able to configure these times offline, not hard code them. How do I proceed? regards")*

Hi,

For anyone reading this, custom order fields can now be restricted to shipping methods in HikaShop.

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

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