I've integrated Spree with my current website (which is built with Ruby on Rails).
It's a fast-food ordering service, and I want orders to be placed ONLY in the opening hours (12:00 - 22:00).
I've never done this before, can someone guide me a bit? Thanks!
You can use
strftime
to get the current time. Then use a simpleif/else
statement (if between 12:00 and 22:00 we'll accept orders/else we won't)