Shabbat Menucha does one job well: from candle lighting on Friday until Havdalah on Saturday night, customers cannot complete a purchase. Instead of an Add to Cart button they see a message you choose, and once Shabbat ends the store reopens on its own.
Everything is automatic. You pick your city once; the plugin works out candle lighting and Havdalah times for every week and every festival from then on.
Candle lighting and Havdalah times come from Hebcal.com. The plugin downloads two years of times in a single request and stores them in your database, then works everything out locally. No request is made to any external service while your customers browse, so there is no effect on page speed.
You can adjust the candle lighting offset, choose your Havdalah custom (nightfall, 42, 50 or 72 minutes), and add a safety margin of a few minutes at either end.
In every mode purchases are blocked on the server. The mode only decides how much the customer can still see.
The plugin ships with a full Hebrew translation and right-to-left styles. A Hebrew site shows Hebrew wording out of the box; every message can be edited from the settings.
This plugin connects to the Hebcal.com Jewish Calendar API to obtain candle lighting and Havdalah times for your store’s location.
Service used
Hebcal.com Jewish Calendar REST API — https://www.hebcal.com/hebcal
Service documentation: https://www.hebcal.com/home/developer-apis
A second endpoint, https://www.hebcal.com/shabbat, is contacted only when you
press “Check this location” on the settings screen, to confirm a location before
you save it.
Purpose
To determine when Shabbat and Yom Tov begin and end at your store’s location, so that purchases can be blocked and released automatically.
Data sent
* The location you configured: either a GeoNames city identifier, or a latitude, longitude and time zone.
* The date range requested (two calendar years).
* Your candle lighting offset and Havdalah preference.
* Whether the Israel or diaspora festival schedule applies.
* Your site’s language, so holiday names are returned in the right language.
* A user agent string identifying the plugin and your site URL.
No customer data, order data or personal information is ever sent.
When data is sent
* Once when the plugin is activated.
* When you save settings that change the location or the times.
* When you press “Refresh times now” or “Check this location”.
* Automatically by a scheduled task, which only contacts Hebcal when fewer than six months of stored times remain. Because each request covers two years, this works out at roughly once a year.
No request is made while customers browse your store.
Privacy and terms
* Privacy policy: https://www.hebcal.com/home/privacy-policy
* About the service: https://www.hebcal.com/home/about
Hebcal does not publish a separate Terms of Use document. The licensing terms
for the data are stated on the About and developer pages linked above.
Hebcal API content is licensed under Creative Commons Attribution 4.0 International. Attribution to Hebcal.com is shown on the plugin’s settings screen.
Both licences are compatible with this plugin’s GPLv2-or-later licence, and no
code from either project is bundled.