Bug: WP Invoice and WooCommerce Subscription Plugin
-
While WP Invoice Plugin is active and user try to select a variable subscription product (WooCommerce Product), It prevents selecting that product and No add to cart button is displayed.
I was debugging WooCommerce and wp-invoice source code to find out what causing this issue, this is what I found:
1. While adding a subscription variable product with WooCommerce Subscription plugin , if I delete any variable subscription product, by default it doesn’t delete variable product from database, just set its post_status=trash. While displaying in front end single product page, it filter out those trash post and only display those variable product which post_status is publish.
2. While wp-invoice plugin is active, filter for trash post is not working. So while displaying a Variable Subscription Product in front end, It gets all variable post with post_status=publish + post_status=trash, so it cause a javascript array index mismatch and display an error message like:
Sorry, this product is unavailable. Please choose a different combination.So my question is, why wp-invoice plugin causing this issue ??
*If I disable wp-invoice plugin, everything works just fine.
- The topic ‘Bug: WP Invoice and WooCommerce Subscription Plugin’ is closed to new replies.