Page 1 of 1
How: Shop only open at opening hours
Posted: 22 Sep 2018, 01:56
by maintainthedomain
Ahoj!
I want my shop working (placing orders) only at opening hours.
I will do it with some JS on client side.
Guess I need a cronjob on server side...whats best method?
Think I could open a db connection and disable cart module in _extensions table?
Or is there a better solution?
Thanks in advance!
Re: How: Shop only open at opening hours
Posted: 22 Sep 2018, 11:13
by Jan
Hi, for now there is no such option, but this is great feature which can be used e.g. for lunch ordering (e.g. the seller will stop all the orders and 10:00 am)
This cannot be solved on Javascript side as there will be no check on the server.
I will try to look at it for the next version, e.g.:
- there will be two new parameters (opening from - opening to) - hours
- so when both will be set, it will be not allowed to make an order when the time will be over.
Jan
Re: How: Shop only open at opening hours
Posted: 19 Nov 2018, 18:01
by Jan
Re: How: Shop only open at opening hours
Posted: 22 Nov 2018, 02:37
by maintainthedomain
Cool, thanks for this.
Unfortunately I implemented a solution with pre-ordering already...so when restaurant is closed, users get a "its closed" notification and can preorder for a chosen time the next or current day...
So, that may be a good (real-world) addition to this new feature...
Re: How: Shop only open at opening hours
Posted: 23 Nov 2018, 11:44
by Jan
Hi, it depends on your settings. You can display the message that it is closed and add the information to the message that the order will be finished e.g. next day and in Options you just set that ordering is possible when the shop is closed:
Parameter: Checking Opening Times: allow
Added new parameter: Store Closed - Checkout Message
Jan