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

#   Food Available only on certain days

##

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

Less More

- Posts: 193
- Thank you received: 11
-
-

3 years 10 months ago [\#347790](#347790) by [affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")  *[Food Available only on certain days](/forum/4-how-to/905590-food-available-only-on-certain-days#347790 "Hello, we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks")* was created by *[affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")*

Hello,
we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks

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

3 years 10 months ago [\#347792](#347792) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Food Available only on certain days](/forum/4-how-to/905590-food-available-only-on-certain-days#347792 "Hello, we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks")*

Hi,

What you want to do is use the "shop close hours" plugin.
This plugins allows you to set openning hours for the sale of all or some products.
So customers will still be able to add the products to the cart. However, they will be blocked on the checkout based on the time of the day and the day and the rules you configure with the shop close hours plugin.

So first, I think you'll want to create an unpublished category for the products you want to restrict and add that category as second category of these products.
Then, you'll want to add your rules. To do that, go in the menu System&gt;Plugins and click on the "new" button to create a new rule and select the shop close hours plugin. In it, you'll be able to enter a name, select that unpublished category, and enter the sale starting day of the week and hour, and the sale end day of the week and hour.
So you'll have to rince and repeat that procedure to enter all the different rules.

If you want to allow for the sale of these products on all the days except Wednesday and Friday, you'll want 2 rules:
- one with the start day being Thurday at 00:01 and the end day being Thurday at 23:59
- one with the start day being Saturday at 00:01 and the end day being Tuesday at 23:59

If you're selling food to pickup at a restaurant, usually, you would want to adapt these to match with the openning hours of the restaurant.

Finally, you might also want to use a translation override to customize the error message the customers will see on the checkout when trying to checkout with the products of that unpublished category on Wednesday/Friday so that it better match with the situation of the online shop.

Merry Christmas !

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

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

Less More

- Posts: 193
- Thank you received: 11
-
-

3 years 10 months ago -  3 years 10 months ago [\#347798](#347798) by [affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")  Replied by *[affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")* on topic *[Food Available only on certain days](/forum/4-how-to/905590-food-available-only-on-certain-days#347798 "Hello, we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks")*

Hello and thank you for your replay, the sales not available all week days its only Wednesday and Friday so the rules below need to be adjusted, would you help please thank you
***If you want to allow for the sale of these products on all the days except Wednesday and Friday, you'll want 2 rules:
- one with the start day being Thurday at 00:01 and the end day being Thurday at 23:59
- one with the start day being Saturday at 00:01 and the end day being Tuesday at 23:59***
see attachment, the store hours always 11 AM to 10 PM
[ ![onlyfw.png](/forum/attachment/56223) ](/forum/attachment/56223 "onlyfw.png")

is that correct?
thanks

- [ ![onlyfw.png](/forum/attachment/56223) ](/forum/attachment/56223 "onlyfw.png") [ ](/forum/attachment/56223?download=1 "onlyfw.png")

Last edit: 3 years 10 months ago by [affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile").

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

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

Less More

- Posts: 193
- Thank you received: 11
-
-

3 years 10 months ago [\#347799](#347799) by [affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")  Replied by *[affaf1952](/forum/user/51687-affaf1952 "View affaf1952's Profile")* on topic *[Food Available only on certain days](/forum/4-how-to/905590-food-available-only-on-certain-days#347799 "Hello, we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks")*

I took the initiative and tried it myself please take a look and let me know is that what do you mean
[ ![isthatcorrect.png](/forum/attachment/56224) ](/forum/attachment/56224 "isthatcorrect.png")

- [ ![isthatcorrect.png](/forum/attachment/56224) ](/forum/attachment/56224 "isthatcorrect.png") [ ](/forum/attachment/56224?download=1 "isthatcorrect.png")

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

3 years 10 months ago [\#347804](#347804) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Food Available only on certain days](/forum/4-how-to/905590-food-available-only-on-certain-days#347804 "Hello, we encountered a new issue and are not sure how to go around this, our client asked if there are certain items (food)from the menu not available only on those days, Wednesday and Friday, and how we can make these items okay to be added to the cart only on those two days and on the other days grayed out or something similar, any help and advice appreciated, thanks")*

Hi,

Yes, that's the correct result with two rules to only allow sales on Wednesday and Friday.

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

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