rudd Posted March 28, 2011 Share Posted March 28, 2011 Hi all,I would like to rename the block header from 'Manufacturer' to 'Shop by Brand. I am using ver 1.4.If someone could help will be really nice as I've spent the last 12 hrs trying to figure out why it was working and suddenly stopped working via 'Module Translation'.I tried doing it via Module Translation but get the following error:***Total expressions : 4005. Click the fieldset title to expand or close the fieldset..Warning, your hosting provider is using the suhosin patch for PHP, which limit the maximum number of fields to post in a form :1000 for suhosin.post.max_vars.1000 for suhosin.request.max_vars.Please ask your hosting provider to increase the suhosin post and request limit to 4105 at least. or edit the translation file manually.****I have already increased the limit to more than 4105. The error is still stopping me from using this module to achive this translation in manufacturer block.Can someone please help if you have a fix. Is there an alternative way to modify the code to achieve this change if I can't do it thru module translation which would have been preferred.?? Link to comment Share on other sites More sharing options...
shokinro Posted March 29, 2011 Share Posted March 29, 2011 if you can not find better solution, you can do this by changing code in theme filefile: /YourSiteRoot/module/blockmanufacturer/blockmanufacturer.tpllook for following string and replace "Manufacturers" to what ever you want. l s='Manufacturers' Note: there could be multiple places 1 Link to comment Share on other sites More sharing options...
rudd Posted March 29, 2011 Author Share Posted March 29, 2011 Hi shokinro,Thanks for your reply.I did try that last night without any change.I have just tried again based on your reply. Cleared the cache, etc and tried in both firefox & IE but the change doesn't seem to take effect. Does 1.4 work differently I wonder?My preferred option would be to use Module Translation, however, if I can change the code to get the same effect I would happily apply to overcome my frustration. Link to comment Share on other sites More sharing options...
shokinro Posted March 29, 2011 Share Posted March 29, 2011 I think it should be the same.are you using default PrestaShop theme? or using customized theme?If you are using other theme, please check if following folder exists/themes/YourSiteThem/modules/blockmanufacturer/If you have this folder, then it will overwrite the one under /modules/ 1 Link to comment Share on other sites More sharing options...
rudd Posted March 29, 2011 Author Share Posted March 29, 2011 Great, thanks heaps.That worked. I went back to your previous post and check the file again. Yes, there were 2 instances of that string, so changed both and all good and working now.Q: Question for my interest for future, if these changes where made via Module Translation, I am assuming it doesn't actually change any code but is gets referenced from the translation source. I am I correct in this assumption?Anyway, thank you once again..you have saved me from going mental with this issue.I shall keep working with my host to see what the fix is with the suhosin limit issue. :-) Link to comment Share on other sites More sharing options...
shokinro Posted March 29, 2011 Share Posted March 29, 2011 if your theme follows the PrestaShop standard, and PrestaShop function correctly, then you are correct. Link to comment Share on other sites More sharing options...
Archangel Posted May 10, 2012 Share Posted May 10, 2012 I've tried all possible suggestions and I still have the obnoxious MANUFACTURER in my template. How about Prestashop being smart about it and adding BRAND in the files?? Translations didn't work Changing tpl didn't work Changing php didn't work Nothing worked!! Please help!!!!!! Link to comment Share on other sites More sharing options...
jhnstcks Posted May 10, 2012 Share Posted May 10, 2012 I've tried all possible suggestions and I still have the obnoxious MANUFACTURER in my template. How about Prestashop being smart about it and adding BRAND in the files?? Translations didn't work Changing tpl didn't work Changing php didn't work Nothing worked!! Please help!!!!!! Did you turn on force compile and turn off cache in preferences>performance tab? 1 Link to comment Share on other sites More sharing options...
Archangel Posted May 10, 2012 Share Posted May 10, 2012 Thank you, that worked perfectly! I'm surprised this hadn't been resolved previously! Link to comment Share on other sites More sharing options...
JecoSheila Posted May 31, 2012 Share Posted May 31, 2012 Hi, I was searching for an answer to this problem too. Needed to change "Supplier" title. But I was having this problem with module translations- Warning, your hosting provider is using the suhosin patch for PHP, which limit the maximum number of fields to post in a form :1000 for suhosin.post.max_vars. 1000 for suhosin.request.max_vars. Please ask your hosting provider to increase the suhosin post and request limit to 4105 at least. or edit the translation file manually. So I had to do this manually, and this thread helped a lot. Yes, I am a newbie with Prestashop Thanks! Link to comment Share on other sites More sharing options...
JecoSheila Posted May 31, 2012 Share Posted May 31, 2012 Did you turn on force compile and turn off cache in preferences>performance tab? I did the changes in the tpl file and translation tab....but did not reflect the changes...until I did the above! so cool! 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