Zen Cart Logo
Forums / General Questions / reviews do not show in all language

reviews do not show in all language

Locked

Views: 957

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
19 Jun 2010, 3:52 PM
#1
ras12 avatar

ras12

New Zenner

Join Date:
Jun 2010
Posts:
4
Plugin Contributions:
0

reviews do not show in all language

Hi all,

I've installed multi-language for my shop(english and spanish) and I'm using Ez-page to show my products review. however, those review only shown on their specify language(e.g. english reviews only show on english version).

Now, I would like to make all reviews show on both languages, (such as english also show on spanish language) is that possible or any way to do it?

Thanks! :blush:

I've searched the forum and faq for 2 hrs but no related subject found : (

19 Jun 2010, 4:27 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: reviews do not show in all language

You would need to find the database query that extracts the reviews and disable the line that matches the language to that in the $_SESSION variable.

19 Jun 2010, 5:07 PM
#3
ras12 avatar

ras12

New Zenner

Join Date:
Jun 2010
Posts:
4
Plugin Contributions:
0

Re: reviews do not show in all language

kuroi:

You would need to find the database query that extracts the reviews and disable the line that matches the language to that in the $_SESSION variable.

is that located phpmyadmin or a file belonged to zen cart?

Thanks

19 Jun 2010, 5:45 PM
#4
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: reviews do not show in all language

It's somewhere in one of the ZenCart PHP files.

19 Jun 2010, 6:49 PM
#5
ras12 avatar

ras12

New Zenner

Join Date:
Jun 2010
Posts:
4
Plugin Contributions:
0

Re: reviews do not show in all language

umm..

I guess maybe in this file
reviews.php in /admin/

there are tons of script like

$products_name = $db->Execute("select products_name
from " . TABLE_PRODUCTS_DESCRIPTION . "
where products_id = '" . (int)$reviews->fields['products_id'] . "'
and language_id = '" . (int)$_SESSION['languages_id'] . "'");

how do i disable the language matching?
:hug:

19 Jun 2010, 7:25 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: reviews do not show in all language

You would have to go through each of the queries related to reviews and remove the limitation to the session language where appropriate.

That particular query though would be an example of where it wouldn't be appropriate, as there may be multiple product_names, one for each language and so removing the condition there would cause the same one to be found for all languages or worse.

Basically this isn't one to attempt unless you have the technical skills to pull it off, and if you have to ask, then it's unlikely that you do.

To go through and do that for you is too big an ask for a forum thread. If you need somebody with those skills, I recommend posting in the commercial help wanted section of this forum.

19 Jun 2010, 7:38 PM
#7
ras12 avatar

ras12

New Zenner

Join Date:
Jun 2010
Posts:
4
Plugin Contributions:
0

Re: reviews do not show in all language

oh

i thought it was easy, thank you for your advise :D