Few questions and requests
-
Hello,
Thank you for your “Flexible Subscriptions” plugin, it looks very promising!
1.
This warning appears on the backend:
“This plugin is incompatible with the enabled WooCommerce feature ‘High-Performance order storage’, it shouldn’t be activated.”
However, after some testing, Flexible Subscriptions seems to work correctly with HPOS enabled.
Why is this warning displayed? Can you describe what is not working properly with HPOS?
2.
Similarly, I noticed that Flexible Subscriptions is not compatible with block Cart and block Checkout.
Is this compatibility planned soon?
For now, you should let administrator know by adding a notice in the cart and checkout page, like this:
Here is a code example to achieve this and also hide the HPOS warning:
/**
?* Declare support for WC specific features (HPOS, blocks, etc.)
?*/
function fsb_wc_declare_compatibility() {
? ? if( ! class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { return; }
? ? \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', 'flexible-subscriptions/flexible-subscriptions.php', true );
? ? \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', 'flexible-subscriptions/flexible-subscriptions.php', false );
? ? \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'product_block_editor', 'flexible-subscriptions/flexible-subscriptions.php', false );
}
add_action( 'before_woocommerce_init', 'fsb_wc_declare_compatibility' );3.
In the customer account > Subscriptions tab >
If the subscription is “Pending cancel” or “Cancelled”, the “Next payment date” should be empty, and the “Cancel” action should not be available.
4.
I have deleted a user who have made subscriptions, it has automatically trash his subscriptions, however, their renewals are still planned:
5.
I am currently using “WooCommerce Subscriptions” plugin: https://woocommerce.com/products/woocommerce-subscriptions/,
I would like to switch to “Flexible Subscriptions” but I don’t want to lose my current customers’ subscriptions.
How can I do?
6.
I would like to allow customers to upgrade and downgrade their subscriptions. For example, switch from a $5 subscription to a $10 subscription.
Is this feature planned?
7.
Can you add the $status_transition[‘from’] variable to the ‘fsub/subscription/status/updated’ hook in \flexible-subscriptions\src\Subscription\Subscription.php line 441?
Like this:
do_action( 'fsub/subscription/status/updated', $this, $status_transition['to'],?$status_transition['from'] );
It is missing here and it is necessary for custom code.
Note that it is present in both WooCommerce Subscriptions and WooCommerce counterparts, so it is probably an oversight.
Regards,
Yoan Cutillas
- You must be logged in to reply to this topic.