Support » Plugin: WooCommerce Extra Product Sorting Options » Unable to get sort by featured to wok

  • Resolved stylizimo

    (@stylizimo)


    Hi,

    I´m having some problems getting the sort by featured to work.

    First I the the built in option “Show featured items first”, which based by its name is just what I want. But when I try this it only shows the featured products and nothing more. I thought it would also show the rest of the products after?

    Then I tried to create my own sorting with “Featured first”. (I tried also to add Name: A to Z), but this didn´t help either. When using this nothing happens to the sort.

    Can you please tell me what I am doing wrong here?

    Thank you,
    Steinar

    https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey stylizimo,

    Did you happen to import your products? We’ve seen this issue in the past with imported products where the _featured meta isn’t set correctly. Let me know and then we’ll dig in further 🙂

    cheers,

    Max

    Hi Max,

    Yes, it is imported products using Datafeedr´s WooCommerce import.

    Hope you are able to solve this, and let me know if you need anything else.

    Cheers,
    Steinar

    Hey Steinar,

    Thanks for confirming that. The issue here is that the Datafeedr import did not set the featured meta for products which means the featured sort won’t work. You’d need to either set this manually for each product, or ask Datafeedr to set that meta when importing.

    Cheers,

    Max

    Hi Max,

    Just so I am sure I understand this. As you can see from this screenshot I have made products “Featured” manually (http://prntscr.com/a7cqq3), but even with this set it is not possible to filter on Featured.

    How can I troubleshoot this further?

    Thank you,
    Steinar

    Hey Steinar,

    Thanks for giving that a try. In order for the sorting to work properly, the “featured” meta needs to be present for every product. I would recommend using the product bulk edit feature to set every product as featured (so the meta is set correctly), and then manually turn off the featured flag for any product that isn’t. This should resolve the issue 🙂

    Max

    stylizimo

    (@stylizimo)

    Hi,

    I have asked Datafeedr about this now, and they were wondering about the following:

    What should “_featured” be set to? Is it “1” for featured and “0” for not featured or is it “yes” for featured and “no” for not featured?

    Thanks and let me know if you need more information.

    Best regards,
    Steinar

    Plugin Author Beka Rice

    (@bekarice)

    Hey @stylizimo, WooCommerce always uses “yes” and “no” for its checkbox values, so _featured should be set to yes. thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to get sort by featured to wok’ is closed to new replies.