Results 1 to 6 of 6

Thread: Store Offline ???

  1. #1
    Client
    Join Date
    Feb 2009
    Location
    Calgary, Canada
    Posts
    29
    Squirrelcart version
    not specified!

    Question Store Offline ???

    I tried to set up 'store offline' the way it was done previously

    http://www.ldev.com/forums/showthread.php?t=4113

    but was unsuccessful, anyone know how to do it ???

    Also would like to have store open with a custom welcome.php page in the content area (not with a welcome nav block), any suggestions?

    Cy

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    I tried to set up 'store offline' the way it was done previously

    http://www.ldev.com/forums/showthread.php?t=4113

    but was unsuccessful, anyone know how to do it ???
    If you use the same code from that thread, and put it in the store_main.tpl.php template file, it should work.

    Also would like to have store open with a custom welcome.php page in the content area (not with a welcome nav block), any suggestions?
    Version 3.0.0 has a Content feature which along with the rest of the features in Squirrelcart turns it into a CMS. Version 3.0.0 beta 2 has the home page setup to show a "Welcome" content area by default:
    example.png

    That is controlled by the "Welcome" content record under "Themes > Content" in your control panel. If you want to customize home page content:

    1. Make sure you are using a custom theme
    2. Set it as your store default theme
    3. Open that theme's record in the control panel
    4. Check "Custom Home Content"
    5. Specify what content you want on your store's home page
    6. Save changes

  3. #3
    Client
    Join Date
    Feb 2009
    Location
    Calgary, Canada
    Posts
    29
    Squirrelcart version
    not specified!

    Baffled ...

    Thanks Jamie,

    I followed your instructions and it works fine, however the 'OFFLINE.php page doesn't replace the 'welcome' content but appears below it (see image). I would prefer that it replaced the content page, is there an easy way to do this?

    Here's the code used:
    ------------

    <!-- main content -->
    <div id="sc_main">
    <?php print $Cart_Content; ?>

    <!--sets up offline page -->
    <?php
    if (is_file('offline.php') && !security_level('Store Admin')) {
    include 'offline.php'; die; }
    ?>

    ---------------

    Note: the offline.php page only has one div with word 'OFFLINE'.


  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    The forum thread that you followed does not have you enter the code as you have it. If you follow the instructions, the code is going to look very different from what you have there.

  5. #5
    Client
    Join Date
    Feb 2009
    Location
    Calgary, Canada
    Posts
    29
    Squirrelcart version
    not specified!

    Once again

    Hi again,

    the code I show on the previous reply is exactly as the link (I entered the few lines above to show where I pasted it).

    The instructions indicate to put it right below

    <?php include 'squirrelcart/pre_storefront.php' ?>

    but, that line is not in that file, I can only assume it has to go elsewhere.

    Cy

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    That line used to be the very first line in store.php, so to make your code comparable, put it at the very top of the page.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts