Hi guys – I just stumbled across what appears to be a bug in the most recent version. In the wjecf-autocoupon.php file, within the get_all_auto_coupons() function, the meta_query in $query_args is invalid. This means it’s being dropped, always rendering an SQL query like:
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘shop_coupon’ AND ((wp_posts.post_status = ‘publish’)) ORDER BY wp_posts.post_title ASC
The meta_query value should be wrapped in another array() – something like:
Actually in my case it is causing a bit of an issue with regards to performance. I stumbled upon the issue while troubleshooting recent performance issues on our site. See http://cl.ly/0V1r0U1s2L39 for an example of what we’re seeing – a large performance hit when hitting the get_all_auto_coupons() method (we have a lot of coupons so without the restriction check in place, processing takes a while).
If you purchased through soft79.nl the file can be find on your account page, otherwise please let me know your order number (through the contact form). If you purchased through CodeCanyon; the new version has been sent for approval so it should be available soon.