Close Up Shop

外掛說明

Close Up Shop lets WooCommerce store‑owners define any number of closure periods (for holidays, inventory counts, vacations, etc.). While the shop is closed, all store‑related pages (shop, product, cart, checkout, account) redirect to a dedicated Shop Closed page that displays your custom message and the exact date & time the shop will reopen.

Version 1.4 introduces a real‑time [closeupshop_reopen_time] shortcode that is evaluated whenever the page is viewed, so the reopening information is never stale, even if you change the schedule later.

Key Features

Creates a Shop Closed page automatically on activation.

Intuitive admin screen under Settings Close Up Shop to add, remove, and reorder unlimited closure periods.

One‑click Add / Remove rows (JavaScript enhanced, no page refresh).

Live [closeupshop_reopen_time] shortcode – drop it anywhere to show the next reopening date & time using your WordPress date/time formats.

Automatic redirection from WooCommerce pages while the shop is closed.

Respects the site time‑zone set in Settings General.

Sends nocache_headers() and defines DONOTCACHEPAGE during redirects and on the Shop Closed page to prevent caching plugins from serving outdated content.

Short Description

Automatically redirects visitors to a “Shop Closed” page during scheduled closure periods and shows a live reopening time powered by a shortcode that updates on every page load.

Support

Need help? Open a topic on the plugin support forum or contact the author via https://eliyahna.com.

Acknowledgements

Thanks to the WordPress & WooCommerce communities for their amazing tools and documentation.

安裝方式

Upload the plugin folder to /wp-content/plugins/ or install through Plugins Add New.

Activate Close Up Shop.

Visit Settings Close Up Shop to add your closure periods and adjust the default message if desired.

常見問題集

How do I show the reopening time anywhere else on my site?

Use the [closeupshop_reopen_time] shortcode in posts, pages, widgets, or templates. It will output the next reopening date and time.

Can I set multiple closure periods?

Absolutely. Add as many periods as you need – they can even overlap. The plugin will pick the currently active period, or the nearest upcoming one if the shop is currently open.

What happens when a closure period ends?

As soon as the end time passes, the shop automatically reopens and customers can access your WooCommerce pages again without redirection.

Does the plugin respect WordPress time‑zone settings?

Yes. All scheduling uses the site time‑zone selected in Settings General.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Close Up Shop〉的開發相關工作。

參與者

將〈Close Up Shop〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4

Introduced [closeupshop_reopen_time] shortcode for real‑time reopening info (replaces former placeholder approach).

Rewrote admin Add / Remove row JavaScript; fixed Remove button not working due to missing type=”button”.

All date/time comparisons now use DateTimeImmutable in the site time‑zone for robustness.

Added nocache_headers() and DONOTCACHEPAGE constants to prevent cached “Shop Closed” pages.

Code clean‑up, documentation refresh, version bump.

1.3

Re‑architected period‑selection logic (chooses latest ending active period or earliest upcoming).

Switched to short‑code driven message so reopening time updates without resaving settings.

Added helper utilities and improved sanitisation.

1.2

Initial public release after renaming project to Close Up Shop.