Nellen Posted November 21, 2012 Share Posted November 21, 2012 Hi there, I'm trying to put a form (the user can register his/her email address) on the maintenance page. I'm using a template, here's the maintenance.tpl file : {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14008 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}" lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> {if isset($meta_description)} <meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" /> {/if} {if isset($meta_keywords)} <meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" /> {/if} <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="shortcut icon" href="{$img_ps_dir}favicon.ico" /> <link href="{$css_dir}maintenance.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="maintenance"> <p><img src="{$content_dir}img/logo.jpg" alt="logo" /><br /><br /></p> <p id="message"> <img src="{$content_dir}img/admin/tab-tools.gif" style="margin-right:10px; float:left;" alt="" />{l s='In order to perform site maintenance, our online shop has shut down temporarily. We apologize for the inconvenience and ask that you please try again later.'} </p> <span style="clear:both;"> </span> </div> </body> </html> I think I'd need to use php to get post variable (email) and insert it in the database. But it seems that Prestashop disabled the {php} tag for security reasons, so I don't know how can I do that. So any help would be greatly appreciated Here is the file after modifications (and where I'm stuck...) : * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14008 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}" lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> {if isset($meta_description)} <meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" /> {/if} {if isset($meta_keywords)} <meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" /> {/if} <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="shortcut icon" href="{$img_ps_dir}favicon.ico" /> <link href="{$css_dir}maintenance.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="maintenance"> <form action='maintenance_register.php' method='post'> <p><img src="{$content_dir}img/logo.jpg" alt="logo" /><br /><br /></p> <p id="message"> <img src="{$content_dir}img/admin/tab-tools.gif" style="margin-right:10px; float:left;" alt="" /> {l s='In order to perform site maintenance, our online shop has shut down temporarily. We apologize for the inconvenience and ask that you please try again later.'} <br /><br /> <span style='margin-left:86px;text-align:left;'>{l s='Please enter your e-mail address :'}</span> <input type='text' size='40' name='email' value='' style='margin-left:86px;margin-top:5px;' /> <input type='submit' value="{l s=' Submit '}"> </p> <span style="clear:both;"> </span> </form> </div> </body> </html> I created the "maintenance_register.php" file, but when i submit, it leads me to 404.php Thanks in advance Link to comment Share on other sites More sharing options...
Nellen Posted November 23, 2012 Author Share Posted November 23, 2012 Sorry for double post, can an admin delete this one please? Link to comment Share on other sites More sharing options...
Recommended Posts