• Resolved handmadehome

    (@handmadehome)


    Hi,

    I’ve just noticed that ORDER PRODUCTS BY option is not working in Products by Category block settings. Whatever I choose nothing changes.

    5

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter handmadehome

    (@handmadehome)

    Whatever I do only Price order options are working. But I need Newness option. Do I understand right that Newness option should sort by published on date?

    If so than earrings must be last. But they are in the middle: https://ibb.co/PxjCwMx (Link to the page: https://www.shop.handmadehome.me)

    Products by date: https://ibb.co/M7d8dKN

    Howdy @handmadehome

    Thank you for reaching out about this.

    I’ve just noticed that ORDER PRODUCTS BY option is not working in Products by Category block settings

    While testing this, on a test installation of mine, I was able to display the selected products from a category as expected on the front end. Both by newness and ascending price.

    Just to clarify, do you have one or more categories selected in the Products by Category block settings?

    Do I understand right that Newness option should sort by published on date?

    That is correct. Which means something odd is happening at your WooCommerce installation, and I’m keen on finding out what.

    Could you share with us the block(s) list that is structuring the page at https://www.shop.handmadehome.me/ currently, please?

    Linked here is a screenshot of what I am asking, for context.

    We will be standing by for your response.

    Thread Starter handmadehome

    (@handmadehome)

    Just to clarify, do you have one or more categories selected in the?Products by Category?block settings?

    I have one category: https://ibb.co/6Z3C7jd

    Could you share with us the block(s) list that is structuring the page

    Here it is: https://ibb.co/V06Ttq9

    Thank you!

    Hi @handmadehome

    Thanks for sharing the requested information above.

    Can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    Let us know how it goes!

    Thread Starter handmadehome

    (@handmadehome)

    I have a snippet to show sold out products at the end:

    add_filter( 'woocommerce_get_catalog_ordering_args', 'mihanwp_sort_by_stock', 9999 );
    
    function mihanwp_sort_by_stock( $args ) {
    $args['orderby'] = 'meta_value';
    $args['order'] = 'ASC';
    $args['meta_key'] = '_stock_status';
    return $args;
    }

    I observe the issue when it’s active. Maybe there is another way to show sold out products at the end? Filter by out of stock hides them from block. I want out of stock products were displayed. (Newness order is not needed in this case.)

    Hi @handmadehome

    I understand that you are using a custom code on your site that conflicts in the built-in filtering of your site.

    Kindly be informed that custom coding is outside our scope of support, hence, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ORDER PRODUCTS BY not working’ is closed to new replies.