• Resolved paulsplace48047

    (@paulsplace48047)


    I had my default sorting set on popularity sales after the woo update a lot of the categories are missing the products or only show a couple of them which looks like only the ones that have sold, but when i sort with any of the other selections it shows all of the products. I really want to order them my the most sales and of course i need all the products to show.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Imported any products recently? I’d guess they are missing _total_sales meta data, and without that they cannot be sorted. This meta is created by default with new products.

    Thread Starter paulsplace48047

    (@paulsplace48047)

    It been a long time since i imported any products about 6 months. Is there a quick easy fix?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    How many products? If it’s what I describe you’d need to add meta for all of them.

    
    add_post_meta( $product_id, 'total_sales', 0, true );
    

    Could write some code to loop over them? Or you could try just saving them again if there are not many.

    Thread Starter paulsplace48047

    (@paulsplace48047)

    i got it fixed, thanks !!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Popularity Sales’ is closed to new replies.