New Landing How can we help? Atelier Reverse Woocommerce product reviews, most recent on top

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Atelier
  • #276335
    sungoshine
    Member
    Post count: 8

    Hey guys,

    I’d like the most recent reviews on my woocommerce product page to appear on top, oldest at the bottom.

    Can you tell me how I could fix that? Not a life or death situation, but would be nice.

    Thanks!

    #276394
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    add_filter( 'woocommerce_product_review_list_args', 'sf_reviews_first' );
    function sf_reviews_first($args) {
        $args['reverse_top_level'] = true;
        return $args;
    }

    Thanks
    Mohammad

    #276538
    sungoshine
    Member
    Post count: 8

    Hey thanks, but I clearly do not have any clue of where to paste the code in functions.php I tried about everything.

    Can you be more specific? Is it ok to use the editor in WordPress dashboard for this?

    Cheers.

    #276565
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You need to be using a child theme, if you’re not, there’s one provided in the download files from themeforest, upload the child theme and activate it then go to Appearance > Editor and paste the code in the functions.php file

    – Kyle

    #276632
    sungoshine
    Member
    Post count: 8

    Ok thnx, I followed your steps.

    When I previewed the child theme from WordPress dashboard I saw the review order was changed. When I activated the child theme it switches back to default order…

    #276939
    David Martin – Support
    Moderator
    Post count: 20834

    Are you using a cache?

    Please add a WP login for us to take a closer look. Can you add your FTP details?

    Thanks.

    #277223
    sungoshine
    Member
    Post count: 8

    It’s fixed! Might have been a cache thing. Don’t know for sure.

    Thanks a lot for your help.

    #277259
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad 🙂 to help you.
    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register