• Jay

    (@galileojay)


    I’m working on a custom query that’s meant to show all woocommerce products added in the past 3 days, but exclude products that are no longer in stock. I’m currently using the woocommerce meta key “_stock_status” to check whether a product is in stock or not, but this doesn’t take into account products that are still in stock but in someone’s cart.

    I was wondering if there was a product meta key I could integrate into my query to check whether a product is currently in someone’s cart.

    Thanks for reading!

Viewing 1 replies (of 1 total)
  • Plugin Author James Golovich

    (@jamesgol)

    Unfortunately there isn’t a meta key that will tell you if the item is in someone’s cart. The post meta and session data are completely separate entities.

Viewing 1 replies (of 1 total)
  • The topic ‘Product post meta key’ is closed to new replies.