Jump to content

Change Title of new products and featured products on the homepage


Recommended Posts

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 
 
Thanks
Sam
Link to comment
Share on other sites

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

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

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 by vikas.programmer (see edit history)
Link to comment
Share on other sites

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 by mumbaihiker (see edit history)
Link to comment
Share on other sites

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.

 

post-725745-0-28427300-1384228697_thumb.png

Link to comment
Share on other sites

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

×
×
  • Create New...