Home Forums WoodMart support forum Order of the products in Arichive page

Order of the products in Arichive page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #467277

    hodaka88888
    Participant

    Hi, I want to set the order of the list of the products in Archive page . By default , it is a Newest or something. However I want it to be “Highest Review”.

    Example page
    https://app2spec.com/p-t/%e3%83%89%e3%83%a9%e3%82%b4%e3%83%b3%e3%83%9c%e3%83%bc%e3%83%abz-%e3%83%89%e3%83%83%e3%82%ab%e3%83%b3%e3%83%90%e3%83%88%e3%83%ab/

    Thank you

    #467414

    Hello,

    Sorry to say but right now there is no option in Theme Settings available to achieve that. It requires Customization and this is beyond our limitations and support policy scope.

    You can change the default order of sorting in Appearance > Customize > Product catalog > find Default product sorting drop-down and select the order.

    Best Regards

    #467552

    hodaka88888
    Participant

    Hi , it’s so dissapointing that you can not do it.
    I think it’s kinda easy to do it by adding some code into functions.php.

    I’m running a review platform with this theme and this is the reason why I bought this theme.

    Please hepl me. Thank you

    #467586

    hodaka88888
    Participant

    At least please tell me where to change in the php code so that I can look into specifically.
    (I’m using Elementor block”Archive product” )

    Thank you.

    #467592

    hodaka88888
    Participant

    Ok , I asked ChatGPT and solved this issue.

    I added this code below into functions.php and it worked.

    add_filter( 'woocommerce_default_product_sorting', function( $orderby )
    {
        return 'rating_desc';
    } );
    

    Thank you

    #467654

    Hello,

    We are glad to hear that you were able to find out the issue yourself and resolved it. You are Great !

    Thanks for sharing it here, it would help others if facing the same issue.
    Let us know if you need any further assistance, we are always there for your help !

    Thanks for contacting us.

    Have a great day!

    Topic Closed.
    Best Regards.

Tagged: 

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

The topic ‘Order of the products in Arichive page’ is closed to new replies.