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

#   Limit Calendar Dates

##

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

Less More

- Posts: 88
- Thank you received: 0
-
-

15 years 2 months ago [\#25727](#25727) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  *[Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25727 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")* was created by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")*

Hi,

In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?

Thanks

Darren

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1NzI3LWxpbWl0LWNhbGVuZGFyLWRhdGVzP3RtcGw9bWFya2Rvd24=) 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: 86574
- Thank you received: 14317
-
-

15 years 2 months ago [\#25735](#25735) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25735 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

That's not possible. We use the calendar library of joomla for that and it doesn't support that without a lot of coding and modifications. That's however an interesting request so we'll see if we can come up with a solution in the future, but for now, you won't be able to do it.

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

15 years 2 months ago [\#25740](#25740) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25740 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

Thanks Nicolas,

Our client has some specific delivery details they require, for example:

Order on Monday &gt; Receive on Thursday
Order on Tuesday &gt; Receive on Friday
Order on Wednesday &gt; Receive on Tuesday
Order on Thursday &gt; Receive on Wednesday
Order on Friday &gt; Receive on Thursday
Order on Saturday &gt; Receive on Thursday
Order on Sunday &gt; Receive on Thursday

Is there a way of identifying the day the order is made and show the delivery date within the checkout and the email the customer receives, for example:

The customer orders a pie on Monday, when they check-out they see the text 'Expected Delivery Date: Thursday' which also appears on the email to the customer.

Sorry for the specifics - the client has changed their mind on this many time.

Darren

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1NzI3LWxpbWl0LWNhbGVuZGFyLWRhdGVzP3RtcGw9bWFya2Rvd24=) 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: 86574
- Thank you received: 14317
-
-

15 years 2 months ago [\#25741](#25741) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25741 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

That's possible.

For the checkout, you need to edit the file "cart" of the view "checkout" via the menu Display-&gt;Views. There you will have to add some PHP code, like that:

switch(date('N')){
case '1':
//Monday
case '5':
//Friday
case '6':
//Saturday
case '7':
//Sunday
echo 'Expected Delivery Date: Thursday';
break;
case '2':
//Tuesday
echo 'Expected Delivery Date: Friday';
break;
case '3':
//Wednesday
echo 'Expected Delivery Date: Tuesday';
break;
case '4':
//Thursday
echo 'Expected Delivery Date: Wednesday';
break;

}

For the email notification, you should edit it via the menu "System-&gt;Emails" (Business edition only) and add something similar but change the first line by:
switch(date('N',$data-&gt;order_modified)){

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

15 years 2 months ago [\#25745](#25745) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25745 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

Thanks Nicolas,

You guys are brilliant!

Darren

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

15 years 1 month ago [\#25814](#25814) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25814 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

Hi Nicolas,

This works like a charm - one thing though, is it possible to add the actual date as well as the day?

Thanks

Darren

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1NzI3LWxpbWl0LWNhbGVuZGFyLWRhdGVzP3RtcGw9bWFya2Rvd24=) 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: 86574
- Thank you received: 14317
-
-

15 years 1 month ago [\#25816](#25816) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25816 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

To display the date, you can do like that:

$day = 60*60*24;
switch(date('N')){
case '1':
//Monday
$date = time() + $day*3;
break;
case '5':
//Friday
$date = time() + $day*6;
break;
case '6':
//Saturday
$date = time() + $day*5;
break;
case '7':
//Sunday
$date = time() + $day*4;
break;
case '2':
//Tuesday
$date = time() + $day*3;
break;
case '3':
//Wednesday
$date = time() + $day*6;
break;
case '4':
//Thursday
$date = time() + $day*6;
break;

}
echo date('F j, Y',$date);

for the email notification, you would have to replace also time() by $data-&gt;order_modified
The format can be changed following this:
[ www.php.net/manual/en/function.date.php](http://www.php.net/manual/en/function.date.php)

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

15 years 1 month ago [\#25817](#25817) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Limit Calendar Dates](/forum/4-how-to/25727-limit-calendar-dates#25817 "Hi,  In the Business version you can feature a delivery calendar - is it possible to make some days unavailable; Saturdays, Sundays and Mondays for example? And also have the earliest date available three days from order?  Thanks  Darren")*

Thanks Nicolas - works perfectly!

Darren

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

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