Support » Plugin: Customer Reviews for WooCommerce » Reviews made for the same product do not display on different language front end

  • Resolved Oclair

    (@oclair)


    Hi there,

    Our site like your’s is available to users who speak different languages.
    Yet your plugin does not display the rating for products made in a different language of our front end (our site is WPML/PolylangWoocommerce/PolylangPro compliant).

    Yet on your website the visitor can see all reviews in any front end language display.

    Thanks in advance,
    OC

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author cusrev

    (@ivole)

    Thanks for trying our plugin!

    Please refer to this article from our knowledge base: https://cusrev.freshdesk.com/support/solutions/articles/43000508678-wpml-show-reviews-in-all-languages

    Thread Starter Oclair

    (@oclair)

    On our page

    https://www.dancingshiva.at/en/shop/bhringhraj-herb-100g/

    Clicking on the see the original review
    https://www.cusrev.com/reviews/www.dancingshiva.at/p/p-3683/r-68764

    returns
    {“code”:500,”error”:”record not found”}

    Thread Starter Oclair

    (@oclair)

    I am unsure why this topic was given a resolved status

    Thread Starter Oclair

    (@oclair)

    Solution home Customer Reviews for WooCommerce FAQ
    WPML: Show Reviews in All Languages
    Print

    Modified on: Fri, 31 May, 2019 at 12:51 AM

    The default behavior of WPML is to show WooCommerce reviews in the currently active language only. For example, imagine that your site has two languages:

    Language A
    Language B

    If your website is viewed in Language B, WPML will automatically filter reviews and show reviews only in Language B.

    You can read more information about this feature on WPML support forums. Most of the topics on the forums will be about showing comments in all languages. This is because WordPress is much more popular than WooCommerce. However, WooCommerce reviews are based on the standard WordPress comments, so topics about viewing all comments also apply to reviews.

    Here is one randomly found topic from the WPML support forum: https://wpml.org/forums/topic/show-comments-in-all-languages-for-each-translated-page/.

    on https://wpml.org/forums/topic/show-comments-in-all-languages-for-each-translated-page/ the following code is submitted as a solution for possibly a similar but not same issue.

    /**
     * ALSO SHOW COMMENTS FROM OTHER LANGUAGES
     */
     
    global $sitepress;
    remove_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );
    add_action('pre_get_comments', function($c){
        $id = [];
        $languages = apply_filters('wpml_active_languages', '');
        if( 1 < count($languages) ){
            foreach( $languages as $l ){
                $id[] = apply_filters( 'wpml_object_id', $c->query_vars['post_id'], 'page', FALSE, $l['code']);
            }
        }
     
        $c->query_vars['post_id'] = '';
        $c->query_vars['post__in'] = $id;
        return $c;
    });

    We run a snippet plugin, the above code did not address the problem and should not be considered a solution for users of this plugin trying to display ratings for the same products submitted in a different front end language.

    Plugin Author cusrev

    (@ivole)

    I’m not sure I fully understood your last three replies. Can you please confirm what is the problem? Is it “{“code”:500,”error”:”record not found”}” error when clicked on verified review link?

    Thread Starter Oclair

    (@oclair)

    Thread Starter Oclair

    (@oclair)

    You guys review products on woocommerce websites around the world, and yet refuse to support multi language front ends and then your data is malformed.

    Time to rethink….

    Plugin Author cusrev

    (@ivole)

    Thanks for providing additional information.

    Can you please let me know which translation plugin you are using on your site?

    Thread Starter Oclair

    (@oclair)

    cusrev (@ivole)
    7 hours, 56 minutes ago

    Thanks for providing additional information.
    Can you please let me know which translation plugin you are using on your site?

    Oclair (@oclair)
    3 days, 13 hours ago

    (our site is WPML/PolylangWoocommerce/PolylangPro compliant).

    We’re using both Polylang Woocommerce and Polylang Pro so we’re able to have full support for Polylang (which is it’s self WPML complaint) with Woocommerce. The developer of polylang is very capable and regularly adds support for 3rd party plugins. The free version of Polylang requires some other plugin to function as a integrator for Woocommerce.

    • This reply was modified 11 months, 3 weeks ago by Yui.
    • This reply was modified 11 months, 3 weeks ago by Yui. Reason: redundant link(s) deleted
    Plugin Author cusrev

    (@ivole)

    OK, then it is clear why you are having this issue. Unfortunately, our plugin does not support integration with Polylang.

    As far as I can see, the free version of Polylang does not support WooCommerce. If you would like us to add compatibility with Polylang, please provide their paid plugin. You can send it to our support email that can be found here: https://www.cusrev.com/business/contact-us.html.

    Thread Starter Oclair

    (@oclair)

    Plugin Author cusrev

    (@ivole)

    Can you please confirm if you saw my previous message?

    Thread Starter Oclair

    (@oclair)

    Can you please confirm if you saw my previous message?

    As far as I can see, the free version of Polylang does not support WooCommerce. If you would like us to add compatibility with Polylang, please provide their paid plugin. You can send it to our support email that can be found here: https://www.cusrev.com/business/contact-us.html.

    That would be piracy violating my user license

    I provided a link but the wordpress.org moderators deleted it accusing it as promoting a paid plugin….

    • This reply was modified 11 months, 2 weeks ago by Oclair.
    Plugin Author cusrev

    (@ivole)

    Unfortunately, we cannot access a paid plugin because it is not available in the free WordPress directory. So, it is not possible to add integration unless somebody provides us a copy of that paid plugin.

    Thread Starter Oclair

    (@oclair)

    About 6 hours ago cusrev confirmed an email correspondence where I addressed these issues with the polylang premium support team. I conveyed your request to have the source code provided.

    As I previously mentioned;

    The developer of polylang is very capable and regularly adds support for 3rd party plugins.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Reviews made for the same product do not display on different language front end’ is closed to new replies.