Minute of Silence for OpenCart 3 and 4
Minute of Silence for OpenCart 3 and 4
Every day at 9:00, your store's storefront pauses for a minute: a full-screen display with a candle, a memorial text, and a countdown timer. Then the page unlocks itself. Free, with no external services, and no impact on site speed.
Description
Features
- Flexible schedule: any time of day and duration from 5 to 3600 seconds.
- Correct time zone: time is calculated according to the selected time zone (by default Europe/Kyiv), not the visitor's clock. Winter and summer time are taken into account automatically.
- Overnight window: supported, for example, a start at 23:59 for 120 seconds.
- Texts for each language: custom heading and text, with line breaks. If there is no text for a language, the first filled one is used.
- Appearance: background color and opacity are customizable.
- Full blocking during display: clicks, scrolling, keyboard, forms, copying. Focus does not leave the overlay, and chats and banners that appear later also become inactive. Video and audio on the page are paused.
- Accessibility: support for screen readers and the "reduce motion" mode.
- Preview via link: check the overlay appearance right away by opening the site with the
?ms_preview=1parameter, without waiting for 9:00. - Does not affect speed: the script is 9 KB (≈3.4 KB after gzip), loaded with
defer, does not block rendering and does not shift the page. There are no external requests. - Compatible with page caching: the time check happens in the browser.
Installation
OpenCart 3: Extensions → Extension Installer → upload minute_silence.ocmod.zip → Extensions → Modules → "Minute of Silence" → "Install" → "Edit".
OpenCart 4: Extensions → Installer → upload minute_silence.ocmod.zip → "Install" → Extensions → Modules → "Minute of Silence" → "Install" → "Edit".
For OpenCart 4, do not rename the archive: the file name determines the extension folder.
Settings
Status - enable or disable the module
Start time - HH:MM, default 09:00
Duration, seconds - from 5 to 3600, default 60
Time zone - name from the IANA list: Europe/Kyiv, Europe/Warsaw, etc.
Background color and opacity, default #000000
and 92%
Preview via link - enables ?ms_preview=1 for checking
Popup text - heading and text for each language
- Time is taken from the visitor's device clock and converted to the selected time zone. If the date or time on the device is incorrect, the overlay will appear at the wrong time.
- The module works in the browser and is not a means of protection: without JavaScript, the visitor will not see the overlay.
- After the module is deleted, the saved settings remain in the database.
Specifications
- PHP Version
- 7.4 8.0 8.1 8.2 8.3 8.4 8.5
- OpenCart Version
- 3.0.2 3.0.3 3.0.4 3.0.5 4.0.0 4.0.1 4.0.2 4.1.0
- Module Localization
- Ukrainian, English
- Support Language
- Ukrainian
Reviews (0)
Please log in to leave a review.
Log inNo reviews yet
Be the first to review this product!
Questions (0)
Please log in to ask a question.
Log inNo questions yet
Be the first to ask a question about this product!
Changelog
- Overlay appears only after the visitor's first action: mouse movement, page scroll, wheel, touch, or key press. The module does not interfere with the initial page load. If the display time has passed before the first action, the overlay is not shown. Preview via the link ?ms_preview=1 works as before, without waiting.
- Fixed
- OpenCart 4.0.1.0–4.0.1.1: the module event was not created during installation, so the overlay was not displayed. Now installation works on all 4.0.x and 4.1.x builds.
- Time zone: values that PHP accepts but the browser does not (for example, GMT+2, +02:00) are no longer saved. The time zone name is now validated against a list of identifiers. If the time zone is not recognized in the browser, the scheduled overlay is not shown, rather than being calculated using the visitor's clock.
- Preview via link: duration is limited to 60 seconds so that the link cannot be used to block the page for a long time.
- Video and audio: pausing now also applies to media added to the page after the overlay has appeared. Embedded iframe players (YouTube, Vimeo) are not paused.
- OpenCart 3: saving settings no longer produces PHP warnings when the request is malformed.
- Default text: "російської федерації" with a lowercase letter.
- readme.txt: the uninstall description has been corrected. Module settings are removed together with the module, rather than remaining in the database.
Available Files
No files uploaded yet