Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.


raiwa

Recommended Posts

Phoenix 1.0.2.2   PHP 7.3

Works fine but in the server log is.

PHP Warning:  Use of undefined constant MODULE_HEADER_TAGS_STORE_MODE_ALLOWED_IPS - assumed 'MODULE_HEADER_TAGS_STORE_MODE_ALLOWED_IPS' (this will throw an Error in a future version of PHP) in D:\\*******\\htdocs\\includes\\modules\\header_tags\\ht_store_mode.php on line 523, referer: http://localhost/*********admin/modules.php?set=header_tags&list=new&module=ht_store_mode

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

Link to comment
Share on other sites

Thanks @raiwa for your great contributions.

On a finer point:

In includes/languages/english/modules/content/header/cm_header_store_mode.php line 24 you have "Sorry, you have tried to access a temporary closed area"

In my opinion temporarily is the correct word. English heh, what a language!

  define('MODULE_CONTENT_HEADER_STORE_MODE_CUSTOM_MESSAGE_SHORT', 'Sorry, you have tried to access a temporarily closed area.');

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

  • 2 months later...

Updated for Phoenix:

Store Mode Phoenix 1.3.1.

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

Link to comment
Share on other sites

I cannot get the MODULE_CONTENT_HEADER_STORE_MODE_CHECKOUT_MESSAGE to show on index.php and checkout pages.

Only the admin message " The store is actually in CHECKOUT Mode. Don't forget to switch it back to Online Mode once you finished" shows.

Phoenix 1.3.0.0

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

Link to comment
Share on other sites

14 hours ago, raiwa said:

You installed the header content module?

Yes.

I upgraded from 1.2.1 which worked correctly. I have uninstalled and reinstalled both modules but no change.

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

  • 3 months later...
Link to comment
Share on other sites

  • 8 months later...

I think this question may be a bit of a silly one.

Am I correct in my thinking that selecting 'Checkout' will disable the checkout. If so does it just stop the checkout system but will allow things to be added into the customers cart or will it also prevent anything being added to the cart.

I dont want customers to be able to add items to their cart whilst stor eis closed but still want then to be able to look around the site and see whats available.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Hi Steve,

Avoid adding items to cart is not included in the module. Even you could add a redirect to the shopping cart page, they could still add items. So this would need to be coded for  the "add product" and "buy now" actions.

When I find time I may add it in the next update.

Link to comment
Share on other sites

Rainer. I was hoping to keep the site open but think it may be best to just close it for maintenance straight away. I want a bit of time to have a break and the UK covid lockdown seems like a good time to get the new site finished and uploaded and then tested fully before making it live. If I stay open I dont get the time to do anything.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

If you want to close for maintenance, it doesn't disturb that hey can add items to the cart? If you use paypal express checkout button, you could just switch it temporary off in the PayPal App.

Link to comment
Share on other sites

28 minutes ago, 14steve14 said:

Turning off the payment modules may be an easier way.

I think that if you do that, it assumes that you want to allow paymentless checkout.  I.e. that enables checkout rather than blocking it. 

Always back up before making changes.

Link to comment
Share on other sites

  • 5 weeks later...

Updated:

Store Mode Phoenix 1.4.0

 

Compatibility:
OSCOM Phoenix 1.0.7.3+
PHP: 7.0 -  7.4
Tested with Phoenix 1.0.7.11

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

 

Link to comment
Share on other sites

Uninstall all modules, delete everything from the old version. Then follow the installation instructions.

Link to comment
Share on other sites

On 12/4/2020 at 12:08 PM, raiwa said:

Uninstall all modules, delete everything from the old version. Then follow the installation instructions.

I was hoping that you we not going to say that.  Cheers

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

The header content module could be just replaced, but there are so many changes, moved files etc that it's not worth writing more specific update instructions. Sorry 😉

Link to comment
Share on other sites

  • 2 weeks later...

HI David @Philo2005,

This file is there by error. Just ignore it. All required files are in the "new files" directory.

See also the "New Files" list in the instructions.

Link to comment
Share on other sites

  • 1 month later...

Hello,

I just installed the version 1.4.0 (in Phoenix 1.0.7.14) and found a bug preventing adding 'Required ip':

in includes/modules/store/st_store_mode.php

in the function htaccess_backup the line:

      if ( defined('MODULE_STORE_MODE_ALLOWED_IPS ') && tep_not_null(MODULE_STORE_MODE_ALLOWED_IPS) ) {
      
contains an extra space before the closing apostrophe and should be

      if ( defined('MODULE_STORE_MODE_ALLOWED_IPS') && tep_not_null(MODULE_STORE_MODE_ALLOWED_IPS) ) {

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...