Andrea Tanda Posted December 30, 2016 Share Posted December 30, 2016 (edited) Hi. I've tried to modify my maintenance page through maintenance.tpl in themes/mytheme/ path adding the bold line below but it doesn't work...any suggestion? <body> <div class="container"> <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='We\'ll be back soon.'}</h1> {l s='We are currently updating our shop and will be back really soon.'} <br /> {l s='For info please mail us at [email protected]'} <br /> {l s='Thanks for your patience.'} </div> </div> </div> </div> </body> thanks Edited January 2, 2017 by Andrea Tanda (see edit history) Link to comment Share on other sites More sharing options...
metal1616 Posted December 30, 2016 Share Posted December 30, 2016 (edited) Hi! Check out in "Adavanced parameters --> Performance" that you have selected in "Smarty" table the option "Force compilation". And disable the cache memory. Edited December 30, 2016 by metal1616 (see edit history) Link to comment Share on other sites More sharing options...
Andrea Tanda Posted December 30, 2016 Author Share Posted December 30, 2016 It works!!! Thank you. Another question, please. Obviously now I see exactly what I've written in html code between ' '. Is there a way to translate it in every other visitor's language? Thanks Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 2, 2017 Share Posted January 2, 2017 Just go to Localization > Translations, select the language you want to translate them into (one at a time) and on the "maintenance" block you should see all your strings, translate them and they should show up translated in each language. 1 Link to comment Share on other sites More sharing options...
Andrea Tanda Posted January 2, 2017 Author Share Posted January 2, 2017 ok, It's clear but this message appears: Warning! Your PHP configuration limits the maximum number of fields allowed in a form 1000 for max_input_vars. Please ask your hosting provider to increase this limit to 1138 at least, or you will have to edit the translation files. So What's the simpliest way to do that? Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 2, 2017 Share Posted January 2, 2017 Create a file in your admin folder via ftp called "php.ini". Edit it and add this: max_input_vars = 2000 Check if it works (if it allows you to translate in the back office without that warning). Some hosting providers don't allow custom php.ini files. In that case you would have to contact your hosting provider and ask them to increase that variable. Cheers. 1 Link to comment Share on other sites More sharing options...
Andrea Tanda Posted January 2, 2017 Author Share Posted January 2, 2017 Thanks a lot. I'll check and see if it works. Link to comment Share on other sites More sharing options...
ventura Posted January 2, 2017 Share Posted January 2, 2017 You can also use something like that {l s='For info please mail us at [1]%s[/1]' sprintf=['mydomain.com'] tags=['<a class="link _blank" href="mailto:[email protected]">']} Link to comment Share on other sites More sharing options...
Andrea Tanda Posted January 2, 2017 Author Share Posted January 2, 2017 I've fixed managing php.ini file through the dedicated panel of my hosting provider. Perfect, thanx a lot w3bsolutions! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now