Jump to content

Rename 'Manufacturer' to 'Shop by Brand' in ver1.4


Recommended Posts

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

if you can not find better solution, you can do this by changing code in theme file

file: /YourSiteRoot/module/blockmanufacturer/blockmanufacturer.tpl

look for following string and replace "Manufacturers" to what ever you want.

l s='Manufacturers'



Note: there could be multiple places

  • Like 1
Link to comment
Share on other sites

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

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/

  • Like 1
Link to comment
Share on other sites

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

  • 1 year later...

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

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?

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...