My shop is bi-lingual, English and Dutch.
I noticed that Product-reviews written in English only show up is the language is set to English.
Same for Dutch.
However, I would like to display ALL reviews in ALL languages.
Is there an easy way to go around the language selection?
(I wouldn't mind a small core change - "cough") I have all my core changes well documented.
I DO have the tpl_cm_pi_reviews.php in the template folder but as far as I can see the boean is not in this file.
Display reviews in all languages
- ReneH4
- Contributor
- Posts: 145
- Joined: Mon Oct 26, 2020 12:00 pm
- Phoenix Version:
- Has thanked: 13 times
- Been thanked: 17 times
Re: Display reviews in all languages
Well, did some experimenting and here's the solution (small core changed indeed):
in the cm_pi_reviews.php change this line (33 in 1079):
to:
If someone can provide me with a solution without core changes that would be better.....
in the cm_pi_reviews.php change this line (33 in 1079):
Code: Select all
. (int)$_GET['products_id'] . " AND rd.languages_id = " . (int)$_SESSION['languages_id']
Code: Select all
. (int)$_GET['products_id']
Last edited by ReneH4 on Fri Nov 05, 2021 7:55 am, edited 1 time in total.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Display reviews in all languages
I think current advice for changes to a module such as this, is to clone that module with a new name and make your changes to that so it would not be overwritten.