• Resolved stijndemulder

    (@stijndemulder)


    Hi,

    I’m looking to make a query where I select products and sort them by meta key (custom field) + add the products where the meta key doesn’t exist.

    So sort order:

    first: meta key value ASC
    then: meta key (custom field value) non existing

    Every time I add sorting meta_value or meta_value_num he doesnt show the items where the key doesnt exist.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there!

    At the moment, there’s no default option for that in WooCommerce and setting that as the default would require quite a bit of additional coding. Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customisation experts listed at https://woocommerce.com/customizations/.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Thread Starter stijndemulder

    (@stijndemulder)

    Yes, it would require some coding, I understand.

    Unfortunately on the wordpress support forums they tell me to come here as it’s “a product” while its advanced WP Query in my eyes…not WooCommerce per se.

    But hey, no problem. Have a nice day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query sort order’ is closed to new replies.