Display reviews in all languages

Open to all! Ask other shopowners for help.
Post Reply
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Display reviews in all languages

Post 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.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
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

Post 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.....
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

Post 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.
User avatar
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

Post by ReneH4 »

Hadn't thought of that, good plan!


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply