Jump to content

How do I and change the "sorry we're closed for maintenance" message to a custom .php?


Recommended Posts

As the title says, I wish to deactive the webshop and change the default message stating that the webshop is closed due to maintenance. How do I do this?

 

I have been thinking of simply uploading another index.php file and save a backup of the original, thus rerouting the customer to another site, but surely there must be a more simpel and safe way to do this?

 

What I have in mind is, a simple php with some pictures of the shop and a statement saying: under construction, please call us at xxxxxx or email us at [email protected] for more info.

 

Anyone out there that have any suggestions?

Link to comment
Share on other sites

As the title says, I wish to deactive the webshop and change the default message stating that the webshop is closed due to maintenance. How do I do this?

 

I have been thinking of simply uploading another index.php file and save a backup of the original, thus rerouting the customer to another site, but surely there must be a more simpel and safe way to do this?

 

What I have in mind is, a simple php with some pictures of the shop and a statement saying: under construction, please call us at xxxxxx or email us at [email protected] for more info.

 

Anyone out there that have any suggestions?

 

 

you must edit maintenance.tpl file in your theme directory.

This file is a template for maintenance message page

  • Like 1
Link to comment
Share on other sites

you must edit maintenance.tpl file in your theme directory.

This file is a template for maintenance message page

Thanks for the fast response! :D

 

So basically I could upload a custom php called maintenance.tpl and use that instead?

Link to comment
Share on other sites

Yes you can, but you must know that this file is smarty template. So you must use smarty command language

Hmm that will be an issue as Im not too familiar with that :/ Any other suggestions to how I could solve it? Like I mentioned in the first post, all I need is to change the php to a custom with some pictures and a bit of text.

 

Maybe if I have a look at the maintenance.css which the template refers to?

 

<link href="{$css_dir}maintenance.css" rel="stylesheet" type="text/css" />

Link to comment
Share on other sites

Hmm that will be an issue as Im not too familiar with that :/ Any other suggestions to how I could solve it? Like I mentioned in the first post, all I need is to change the php to a custom with some pictures and a bit of text.

 

Maybe if I have a look at the maintenance.css which the template refers to?

 

<link href="{$css_dir}maintenance.css" rel="stylesheet" type="text/css" />

 

remember that you can use PHP in smarty :)

 

 

{php}

//your php code here

{/php}

Edited by vekia (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 6 months later...

an old thread yes but for the record and anyone who sees this in the future, i did the following...

 

i edited the maintenance.tpl file with text edit program on mac.

 

i did 2 things...

 

1) removed the message all together by deleting the following (i had previously edited the message to suit me so that is why it is different from the default one)...

 

 

<p id="message">

{l s='Sudar con Estilo! Proximamente! Por Favor, Vuelve Pronto!'}<br /><br />

{l s='Sweat with Style! Coming To This Space, Please Come Back Soon!'}

 

if all you want to do is change this text as mentioned above then after this you are done after this step BUT i wanted to use a custom coming soon image with some of my products and my logo on it so i...

 

2) uploaded a new image with the name "comingsoon.jpg" to the main img directory in my public html folder (where prestashop is installed) and edited the following line in the maintenance.tpl file to insert the new image instead of my store logo...

 

<p><img src="{$content_dir}img/logo.jpg" alt="FIXGEAR" /><br /><br /></p>

 

changed to...

 

<p><img src="{$content_dir}img/comingsoon.jpg" alt="FIXGEAR" /><br /><br /></p>

 

i then replaced the maintenance.tpl with this new edited one.

 

you can see this at http://www.fixgear.info/ (at least until i launch my store ;)

 

saludos,

jer...

Link to comment
Share on other sites

  • 1 year later...

Can you please update the solution for PS 1.6! in the file maintenance.tpl this is what i have: 

 

<div id="maintenance">
<div class="logo"><img src="{$logo_url}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}"{/if} alt="logo" /></div>
             {$HOOK_MAINTENANCE}
             <div id="message">
              <h1 class="maintenance-heading">{l s='Maintenance mode'}</h1>
{l s='In order to perform website maintenance, our online store will be temporarily offline.'}
{l s='We apologize for the inconvenience and ask that you please try again later.'}
</div>
 
I see here where i can change the text BUT no sign of picture extensions aynwhere here.. i am so confused,, Please help! thank you guys!!!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...