mumbaihiker Posted November 9, 2013 Share Posted November 9, 2013 Hello I want to change the title of new products to new tours and featured products to Featured tours. I changed all the fields in /modules/blocknewproducts/blocknewproducts.tpl and /modules/homefeatured/homefeatured.tpl but the title on the homepage does not change. I cannot use the translated option as my hosting company is shared hosting and i get the error 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 the this limit to 1150 at least or edit the translation file manually. php5.ini and php.ini options do not work . The site is http://booking.activeadventureindia.com/index.php Thanks Sam Link to comment Share on other sites More sharing options...
vekia Posted November 9, 2013 Share Posted November 9, 2013 where you've got hosting? everything depends on it, some hosters allows to change php.ini settings, some of them not. have you asked your hoster about increasing this param value? it's the easiest way Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 9, 2013 Author Share Posted November 9, 2013 Hi Vekia I am hosting on hostgator business account .In my cpanel i got php.ini QuickConfig but this does not have the option for max_input_vars . I will raise a ticket and see if they can get that done . Was hoping for some way to do in the .tpl files . Thanks for the reply.Have been using your tips and modules a lot to make changes to my sites . Sam Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 11, 2013 Author Share Posted November 11, 2013 Hi Vekia I checked with all hosting providers here and none of them can change the set max_input_vars on their shared server . Over here shared hosting is the most affordable hosting but it is severely limited as the shared hosting is outsourced from other companies in other countries like canada and the usa. Link to comment Share on other sites More sharing options...
vekia Posted November 11, 2013 Share Posted November 11, 2013 Hello but if you've got possibility to customize php.ini file, why not to try this method (to increase limit value)? just add code to increase max_input_vars values as i stated here: max input vars in prestashop Link to comment Share on other sites More sharing options...
ExpressTech Posted November 11, 2013 Share Posted November 11, 2013 (edited) there is a work around, an easy one. But only if you want to try this once or twice, as it takes time. Use chrome developer's tool, delete the translation options (divs) for the modules which you don't want and then just submit the page as usual. The problem here is - lot of POST vars being submitted, which is limited by PHP by default - 1000. If we can somehow decrease this (such as I suggested), you should be able to do it. PM me, if not able to do it using above solutions, I should be able help in a screen share session. Edited November 11, 2013 by vikas.programmer (see edit history) Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 12, 2013 Author Share Posted November 12, 2013 (edited) Thanks Vekia and Vikas. Before posting i created a php.ini and php5.ini in the root folder . Then i added the following entries suhosin.post.max_vars = 4252 suhosin.request.max_vars = 4252 max_input_vars = 3000 This did not work. Finally after raising a ticket ,hostgator support has made the changes . Hostgator increased the max input vars and i can now see the fields. I changed under Front Office translations (Language: English (English), Theme: default) new-products - 3 expressions New Tours = New Tours No new products. = New products= New Tours But the front page still shows New Products I also cannot find Featured Products under Front Office translations Edited November 12, 2013 by mumbaihiker (see edit history) Link to comment Share on other sites More sharing options...
ExpressTech Posted November 12, 2013 Share Posted November 12, 2013 Found it! The translation you performed, did in fact worked - http://booking.activeadventureindia.com/index.php?controller=new-products. But since you have do translation for right side "module", you need to translate the module as well. Go to Translations and choose "Installed Module Translations", instead of "Front office translations", search for "New Products" and then change that as well. Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 12, 2013 Author Share Posted November 12, 2013 Thanks Vikas! with your tip . Featured Products changed to Featured tours by changing it in the installed modules. But New Products is remaining the same Attaching a screen shot Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2013 Share Posted November 12, 2013 what you want to change in new products block? Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 12, 2013 Author Share Posted November 12, 2013 I want customers to see new tours on the right of the home page instead of new products http://booking.activeadventureindia.com/index.php Link to comment Share on other sites More sharing options...
stottycabanas Posted November 13, 2013 Share Posted November 13, 2013 Hi mumbaihiker, Edit /modules/blocknewproducts/blocknewproducts.tpl and /themes/yourtheme/modules/blocknewproducts/blocknewproducts.tpl. Replace any occurrence of s='New Products' with s='New Tours' Cheers, Dave Link to comment Share on other sites More sharing options...
mumbaihiker Posted November 14, 2013 Author Share Posted November 14, 2013 Thanks Dave I have changed the text there < h4 class="title_block" >< a href="{$link->getPageLink('new-products')|escape:'html'}" title="{l s='New Tours' mod='blocknewproducts'}">{l s='New Tours' mod='blocknewproducts'}</a ></h4 > But the front page just does not seem to change ! Cheers Sam Link to comment Share on other sites More sharing options...
stottycabanas Posted November 14, 2013 Share Posted November 14, 2013 Sam, did you change both files? Also try clearing your browser cache. Link to comment Share on other sites More sharing options...
Recommended Posts