Advanced Date Picker for Delivery Date

  • Posts: 31
  • Thank you received: 2
7 years 6 months ago #269545

I've set up an advanced date picker custom field. For the most part it's working fine, but my client would like to have it behave in a specific way.

We have two shipping methods: standard and expedited. We'd like the default date to be set 8 days in the future (similar to the way the waiting days option works), but still allow users to select dates sooner if using the expedited shipping option. With the waiting days enabled, the earlier dates are grayed out and can't be selected.

Can the default date field be used in such a way that it returns a date X days ahead, rather than a specific date?
Or, is there a way I could set up two versions of the date picker field and have them swapped based on the shipping method selected?

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 6 months ago #269549

Hi,

I don't see a way to do that with the advanced date picker custom fields.
I would recommend duplicating the datepicker field plugin and modify it to support your needs.
If you're a developer it shouldn't be a problem. The plugin is in the folder plugins/hikashop/datepickerfield

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum