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

#   Custom field date picker advanced - Waiting days does not exclude forbidden day

##

- **[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")**
- [![ji&#95;jenny2110's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile") Topic Author
- [ Offline](/forum/user/57207-ji-jenny2110)

Less More

- Posts: 3
- Thank you received: 0
-
-

7 years 6 months ago [\#306671](#306671) by [ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")  *[Custom field date picker advanced - Waiting days does not exclude forbidden day](/forum/26-product-category-display/897486-custom-field-date-picker-advanced-waiting-days-does-not-exclude-forbidden-day#306671 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 74.0.3729.157  Hi!  The issue ist with the date picker advanced. It is used to let the customer select the delivery date they want. The products are books. The customers are teachers.  When an order is placed, it will be sent directly to our printery, they print the book and send it to the customers. From the date when the order is placed until the customer receive it, the prinery needs 4 days. Printery does not work on saturday and sunday also there is no delivery on saturday and sunday.  So i have set up Saturday and Sunday as forbidden days and Waiting days to 4.  Everything works fine if the day when the order is placed is an monday, as the next selectable date in the frontend is friday. The problem is, if there is an weekend in between.  If the order Date is friday, the nex selectable date is Tuesday. So ist counting also the forbidden days.  As our printery does not work on Saturday and Sunday, the orders placed on fridays will not be delivered until Thursday of the next week.  Is there any posibillity to exclude the forbidden dates from the count?  Thanks in advance for your help.  Berst regards Jenny")* was created by *[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")*

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome 74.0.3729.157

Hi!

The issue ist with the date picker advanced. It is used to let the customer select the delivery date they want.
The products are books. The customers are teachers.

When an order is placed, it will be sent directly to our printery, they print the book and send it to the customers. From the date when the order is placed until the customer receive it, the prinery needs 4 days. Printery does not work on saturday and sunday also there is no delivery on saturday and sunday.

So i have set up Saturday and Sunday as forbidden days and Waiting days to 4.

Everything works fine if the day when the order is placed is an monday, as the next selectable date in the frontend is friday.
The problem is, if there is an weekend in between.

If the order Date is friday, the nex selectable date is Tuesday. So ist counting also the forbidden days.

As our printery does not work on Saturday and Sunday, the orders placed on fridays will not be delivered until Thursday of the next week.

Is there any posibillity to exclude the forbidden dates from the count?

Thanks in advance for your help.

Berst regards
Jenny

- [ ![date&#95;picker&#95;config.png](/forum/attachment/46827) ](/forum/attachment/46827 "...ker&#95;config.png") [ ](/forum/attachment/46827?download=1 "...ker&#95;config.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTc0ODYtY3VzdG9tLWZpZWxkLWRhdGUtcGlja2VyLWFkdmFuY2VkLXdhaXRpbmctZGF5cy1kb2VzLW5vdC1leGNsdWRlLWZvcmJpZGRlbi1kYXk/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 years 6 months ago [\#306687](#306687) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field date picker advanced - Waiting days does not exclude forbidden day](/forum/26-product-category-display/897486-custom-field-date-picker-advanced-waiting-days-does-not-exclude-forbidden-day#306687 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 74.0.3729.157  Hi!  The issue ist with the date picker advanced. It is used to let the customer select the delivery date they want. The products are books. The customers are teachers.  When an order is placed, it will be sent directly to our printery, they print the book and send it to the customers. From the date when the order is placed until the customer receive it, the prinery needs 4 days. Printery does not work on saturday and sunday also there is no delivery on saturday and sunday.  So i have set up Saturday and Sunday as forbidden days and Waiting days to 4.  Everything works fine if the day when the order is placed is an monday, as the next selectable date in the frontend is friday. The problem is, if there is an weekend in between.  If the order Date is friday, the nex selectable date is Tuesday. So ist counting also the forbidden days.  As our printery does not work on Saturday and Sunday, the orders placed on fridays will not be delivered until Thursday of the next week.  Is there any posibillity to exclude the forbidden dates from the count?  Thanks in advance for your help.  Berst regards Jenny")*

Hi,

I see your problematic. There is no option you could change to handle that.
That would require modifying the code of the plugin to take into account the forbidden/excluded days in the waiting period.
While it's possible, it's not easy to do as it requires doing calculations to know whether the waiting period include these days or not and extend it accordingly.
And the calculations need to be done twice (the code will be a bit different in both places), when the field is displayed (so that the calendar is properly displayed), and when verifying the selected date after the selected value is sent to the website (so that people can't cheat).
So it will require several hours of work to do that properly.
If that's something you would like us to work on for you, you can use our contact form to ask a quote on that.
Don't forget including a link to this thread in your message:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

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