Store Mode

store_mode_shop_01.png
1.4.4 Phoenix 1.0.8.4 - 1.0.8.7
Released:
Sun Nov 14, 2021 11:03 am
File size:
439.72 KiB
Validated for:
Phoenix 1.0.8.4 - 1.0.8.7
MD5 checksum:
88d606792c84e6ee77f04de1cb47a8a0
1.4.3 Phoenix 1.0.7.3 - 1.0.8.3
Released:
Fri May 07, 2021 7:01 am
File size:
439.6 KiB
Validated for:
Phoenix 1.0.7.3 - 1.0.8.3
MD5 checksum:
2aa7eb9dd882f87f91bc599a70bd58e7
1.3.2 Phoenix 1.0.7.0 - 1.0.7.2
Released:
Fri May 07, 2021 7:01 am
File size:
606.2 KiB
Validated for:
Phoenix 1.0.7.0 - 1.0.7.2
MD5 checksum:
832a3fa88d99eafebf92e220130ed31d
Description
How it works
This add-on allowes to switch your store to different closed/maintenance modes. It allows you to do installations, maintenance and checks closing only the strict necessary areas of your store.
Compatibility:
Phoenix Cart 1.0.8.4+
PHP: 7.0 - 7.4
Tested with Phoenix 1.0.8.7/8
Store modes:
Online: Normal store mode
Custom: Customizable group of pages. Default: product_reviews.php and product_reviews_write.php. Any group of pages can be defined. Customers will be redirected to the last visited page outside the restricted area or index.php. A temporary message will be shown only if a customer tries to access the restircted area.
Checkout: By default all checkout pages are included in this group. Customers will be redirected to the last visited page outside the restricted area or shopping_cart.php. A permanent message will be shown on the shopping cart page and optional on the index page. An additional temporary message shows only if a customer tries to access the restircted area.
Account: By default all checkout pages and account pages are included in this group. Customers will be redirected to the last visited page outside the restricted area or index.php. A permanent message will be shown on the shopping cart page and index page. An additional temporary message shows only if a customer tries to access the restricted area.
Offline: Customers will be redirected by .htaccess rewrite rules to a standalone 503 maintenance page.

The store administrators IP will be entered automatically in a configuration list. Additional administrators/developpers IPs can be added. These IPs are excluded from redirects in all the above listed Modes. Test Modes for all above listed modes are available which will only redirect the IP's included in the configuration list. This can be used to check the redirects and messages.
Changes 1.4.4:
- Disable Checkout content module on shopping cart page for "Checkout" mode. This prevents the PayPal Express button to be used. Thanks to @bermuda for the suggestion
- Removed debug code in shop hook. Thanks to @bermuda for the report
Changes 1.4.3:
- Added check for invalid/wrong formatted IP adresses
- Added strip trailing blank spaces/tabs from IP adresses
- Added error message showing the wrong IPs
Changes 1.4.2:
- Updated Copyright info to Phoenix cart
- updated screenshots to Phoenix Cart
- tested with Phoenix 1.0.8.0
Changes 1.4.1:
- Applied typo fix in store module. Thanks to @vmn
Changes 1.4.0:
- updated for Phoenix 1.0.7.3+
- moved redirects to system hook
- changed header tag module to store module
- updated modules to abstarct executable modules
- added admin siteWide hook to display mode message
- updated language files to const
- general code cleanup and modernization to match core code
Changes 1.3.2:
- fixed code reference in .htaccess offline mod script
Changes 1.3.1:
- fixed typo in header module english language file. Thanks to @mhsuffolk
- fixed undefined error message. Thanks to @mhsuffolk
Changes 1.3.0:
- header module updated for Phoenix BS 4
- Updated header module message to show correct offline time if 2h auto setting is used
- Updated admin header module message for 2h auto setting
Thanks to @ecommunlimited, @Fiber and @frankl for testing and reports
Inspired by:
Store Mode (Open | Closed | Maintenance)
and:
Site Maintenance Status - All versions
Maintenance page based on the page included there. Thanks to @Demitry
Donate to Raiwa. Thank you for donating, it allows me to spend more time developing free contributions for you to use.
  • Author raiwa
  • Last updated Sun Nov 14, 2021 11:03 am
  • Total Downloads 1712
  • Rating
    (0)
  • Categories Other
store_mode_shop_03.png store_mode_shop_02.png store_mode_admin_01.png store_mode_admin_02.png store_mode_admin_03.png
  • Addon Revisions/Downloads
    Version
    Phoenix Version(s)
  • 1.4.4
    • 1.0.8.4 - 1.0.8.7
    Validation time: Nov 14, 2021 11:03 am
    Downloads: 237
  • 1.4.3
    • 1.0.7.3 - 1.0.8.3
    Validation time: May 07, 2021 7:01 am
    Downloads: 720
  • 1.3.2
    • 1.0.7.0 - 1.0.7.2
    Validation time: May 07, 2021 7:01 am
    Downloads: 672