Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Plugin Contributions
    0

    Default 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!

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

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: reviews do not show in all language

    Quote Originally Posted by kuroi View Post
    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

  4. #4
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: reviews do not show in all language

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

  5. #5
    Join Date
    Jun 2010
    Posts
    4
    Plugin Contributions
    0

    Default 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?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: reviews do not show in all language

    oh

    i thought it was easy, thank you for your advise

 

 

Similar Threads

  1. v150 Is There A Way To NOT Show Dates On Product Reviews?
    By Scully in forum General Questions
    Replies: 5
    Last Post: 16 Sep 2013, 11:40 PM
  2. not all of my manufacturers show up in searches
    By jjones2 in forum General Questions
    Replies: 1
    Last Post: 9 Jul 2009, 02:31 AM
  3. Product page - how to show a link to the reviews page and reviews count?
    By Ronson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Mar 2009, 11:45 PM
  4. Show ALL reviews on one page?
    By kookiewookie in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Oct 2006, 03:23 PM
  5. IE will not show images in Swedish language
    By heidikfi in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Jun 2006, 11:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg