Store Mode

store_mode_shop_01.png
1.6.0 Phoenix 1.0.8.4 - 1.0.8.21
Released:
Tue Nov 14, 2023 8:25 am
File size:
23.62 KiB
Validated for:
Phoenix 1.0.8.4 - 1.0.8.21
MD5 checksum:
0dc76fb46ea3b445a116cf2e40553132
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+
Tested with Phoenix 1.0.8.20
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.6.0:
- Added date_default_timezone_set() to maintenance.php to allow correct time left calculation if the server is located in a different time zone than the shop.
- Updated script to set store name in maintenance.php on store mode module installation.

Changes 1.5.2:
- Changed cfg module title constant for compatibility with other store modules

Changes 1.5.1:
- Changed hook method from application_start to injectRedirects. This fixes not loaded language definitions.
- Minor fix for to use correct language definition HEADER_TITLE if NAVBAR_TITLE is not defined

Changes 1.5.0:
- Few minor updates to match the version included in Phoenix Pro

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.
NOT SUPPORTED
TESTED 7.x
TESTED 8.0-8.2
  • Author raiwa
  • Last updated Tue Nov 14, 2023 8:25 am
  • Total Downloads 4430
  • 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.6.0
    • 1.0.8.4 - 1.0.8.21
    Validation time: Nov 14, 2023 8:25 am
    Downloads: 100
  • 1.4.3
    • 1.0.7.3 - 1.0.8.3
    Validation time: May 07, 2021 7:01 am
    Downloads: 1053
  • 1.3.2
    • 1.0.7.0 - 1.0.7.2
    Validation time: May 07, 2021 7:01 am
    Downloads: 1013