Jump to content

Store home in admin


11thhour

Recommended Posts

Hi everyone,

I have my store turned off and have allowed administrators to view the store off line. It use to work like that just fine, but now while in admin when I click store home it goes to the page I have for when the site is off not the store itself. Does anyone know how I might be able to fix this? I tried clearing the cache and admin logs and also clearing browser history, cookies and cache. Any help would be appreciated. Thanks!

Link to comment
Share on other sites

"and have allowed administrators to view the store off line"

This setting does not appear in the latest versions of CC6.

When working properly, there is a fat red banner across the top (may be specific to Foundation) advising the admin that the store is being shown for admin purposes and is actually offline.

 

Link to comment
Share on other sites

Hi, I'm running Version 4.4.2  The last issue I had was a warning about time zones on my admin panel and bsmither helped with that by having me change some code to whats below.

For CC442, in ini.inc.php:

Find near line 131:
## default encoding UTF-8
ini_set('default_charset','UTF-8');

//date_default_timezone_set('UTC');

Change the last line to:
date_default_timezone_set('Amaerica/New_York');
Link to comment
Share on other sites

In CC4's index.php, near line 102:

Using a programmer's text editor, find:

if(($config['offLine']==1 && isset($_SESSION[CC_ADMIN_SESSION_NAME]) && $config['offLineAllowAdmin']==0) || ($config['offLine']==1 && !isset($_SESSION[CC_ADMIN_SESSION_NAME])))

Change to:

if(($config['offLine']==1 && isset($GLOBALS[CC_ADMIN_SESSION_NAME]) && $config['offLineAllowAdmin']==0) || ($config['offLine']==1 && !isset($GLOBALS[CC_ADMIN_SESSION_NAME])))

This is a quick and dirty solution. Someone who knows what they are doing can forge a cookie such that CC4 now will show the storefront where otherwise would be shown the offline page.

Link to comment
Share on other sites

"I'm not sure how these things get changed"

I think the code in the file index.php for CC448 (the latest version which previously you were instructed to use) wasn't checked for this scenario. So, this may be a bug that is still present for others who are running CC4.

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
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...