Page 1 of 1

Display reviews in all languages

Posted: Fri Nov 05, 2021 7:15 am
by ReneH4
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.

Re: Display reviews in all languages

Posted: Fri Nov 05, 2021 7:30 am
by ReneH4
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):

Code: Select all

        . (int)$_GET['products_id'] . " AND rd.languages_id = " . (int)$_SESSION['languages_id']
to:

Code: Select all

        . (int)$_GET['products_id']
If someone can provide me with a solution without core changes that would be better.....

Re: Display reviews in all languages

Posted: Fri Nov 05, 2021 7:50 am
by heatherbell
ReneH4 wrote: Fri Nov 05, 2021 7:30 am in the cm_pi_reviews.php change this line:
If someone can provide me with a solution without core changes that would be better.....
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.

Re: Display reviews in all languages

Posted: Fri Nov 05, 2021 9:47 am
by ReneH4
Hadn't thought of that, good plan!