XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
393 stars 218 forks source link

The wc_get_min_max_price_meta_query() function is deprecated since version 3.6 #651

Closed Azuf closed 1 year ago

Azuf commented 3 years ago

passing the max_price and/or min_price to Product.GetAll() params throws a WebException. The content string from the failed response says "The wc_get_min_max_price_meta_query() function is deprecated since version 3.6".

I pass double values converted to string into the dictionary like so

{
  { "max_Price", MaxPrice.ToString("#.##") },
  { "min_price", MinPrice.ToString("#.##") }
  // ... other filters
}

I read somwhere that this was removed in favor of lookup-tables. I could not find any resources about lookup tables and WooCommerce API so I'm at a loss here. Any idea how the Product.GetAll() can be filtered with the min and max prices?