Incorrect “Interested Person(s)” amount in custom column
-
I got a few problems based on the amount of Interested Person(s).
It seems that after an alert has been sent to a person when a product is back in stock, the status of the subscription is set to “woo_mailsent”.
And the post_meta data of “no_of_subscribers” will be removed.
The problem is that for some reason, I got products in stock that still have this post_meta data of “no_of_subscribers”. So when I sort my products based on the custom column “Interested Person(s)” the results are not accurate.The second problem I see is that the value in the custom column “Interested Person(s)” is not correct?
This column is sorted based on the post_meta data from “no_of_subscribers” of the product, but the values shown are the amount of subscribers (post_type: woostockalert) for this product unrelated to what status this post has (woo_subscribed, woo_mailsent, …).
Shouldn’t this be filtered only on ‘woo_subscribed’ in the function manage_custom_column?Maybe my problems are the result of some legacy data from an older version of this plugin?
If this is the case, are there some queries or steps I can do to restore and recalculate the amount of subscribers?
- The topic ‘Incorrect “Interested Person(s)” amount in custom column’ is closed to new replies.