Eshop Products Filter module

  • Mitch Rac
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #94077 by Mitch Rac
Eshop Products Filter module was created by Mitch Rac
Hi
in the eshop "product filter module" I would like to change the header from "Manufacturers" to "Vendors", just the heading. I can find and change it with firebug, but I can't find the actual file and line# when searching for it. Can you please tell me where it's at and the line # I need to change?

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago - 7 years 2 months ago #94081 by Peter
Replied by Peter on topic Eshop Products Filter module
Code editing solution (remember, after eshop update you will loose this!!!!):
Go to: \modules\mod_eshop_products_filter\tmpl\
Edit the default.php on line 126 (i am using notepad++ for editing, shows the code better)
looks like this: "php echo JText::_('ESHOP_FILTER_MANUFACTURERS'); "
change it to php echo JText::_('VENDORS');
DONE!

Second and the best solution is:
go to: \language\en-GB\ (or your front-end language folder)
search for: xx-XX.mod_eshop_products_filter.ini
edit the line containing: ESHOP_FILTER_MANUFACTURERS="Manufacturers" to ESHOP_FILTER_MANUFACTURERS="Vendors"
DONE!

Explained:
The template file default.php on the line 126 "php echo JText::_('ESHOP_FILTER_MANUFACTURERS');" is calling for the line ESHOP_FILTER_MANUFACTURERS stored in the front-end language file. When we change the 'ESHOP_FILTER_MANUFACTURERS' to 'VENDORS' the file is still searching for this line in language file, BUT this line does not exist. So the template returns the same you have entered into ''. Eshop is supporting mutliple languages. So the most of the front-end text is stored in the language files. Simply click SHOW HTML SOURCE in your browser when you want to find the tag name that is in the language file.

This should work....
Last edit: 7 years 2 months ago by Peter. Reason: More explained...
The following user(s) said Thank You: Giang Dinh Truong

Please Log in or Create an account to join the conversation.

  • Mitch Rac
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #94116 by Mitch Rac
Replied by Mitch Rac on topic Eshop Products Filter module
Thank you Peter, I used solution #2 as you suggested and it work perfectly. I do understand that updating eshop will overwrite this and I will have to change it again each time...Thanks again

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
7 years 2 months ago #94393 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Eshop Products Filter module
Thank you Peter! That's the solution.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong