• Resolved yoancutillas

    (@yoancutillas)


    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

    • This topic was modified 1 month, 1 week ago by yoancutillas. Reason: add images
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hi @yoancutillas

    Forgive me for not being able to answer all the points in the first message. You have simply raised so many items that I have not yet been able to gather all the information you ask for.

    1, 2 I tested the plugin today and didn’t notice any similar messages. Can you please provide the version of WordPress, WooCommerce and PHP you tested our plugin with?

    3, 4, 7 I am waiting to hear from the developer, as soon as I know any arrangements I will be in touch.

    Regards,

    Thread Starter yoancutillas

    (@yoancutillas)

    Hi, no problem you can take your time and answer one after the other, sorry for the sudden workload ??

    1.

    WP 6.7.1, WC 9.6.1, PHP 8.2.23

    To see the error message, you need to go to WooCommerce > Settings > Advanced tab > Features tab > Order data storage = select “High-performance order storage (recommended)” > Save changes

    2.

    To reproduce the problem, you need to use the “Cart” block, not the “Classic cart”, and click on it: https://www.youtube.com/watch?v=Y6mACH75Suk&t=15s

    The message with a orange background on my screenshot is automatically displayed by WooCommerce. You want to add “Flexible Subscriptions” to the list to inform users that they cannot use the Cart block with Flexible Subscriptions. For that, you just need to declare your lack of compatibility with the provided code example.

    Plugin Support rzepsen

    (@rzepsen)

    Hi @yoancutillas

    No problem with workload ??

    1. 2. Could you reinstall the plugin? Does the problem occur if you reinstall the plug-in? Don’t worry you won’t lose your settings if you uninstall it. Any settings are set in the database and will return when you enable it.

    3. The problem has been reported, and our technicians are trying to resolve it as soon as possible. As soon as I receive further information on this subject, I will notify you immediately.

    4. The task is scheduled, but the plugin won’t process it. Plugin won’t create an order if the subscription is cancelled, pending cancellation, deleted.

    5. 6. Unfortunately, the plugin doesn’t support this yet. The addition of this feature is reported to programmers, but we do not know the date of its implementation.

    I will add you to the list of people interested in this functionality and I will inform you when it happens.

    7. I am waiting to hear from the developer. As soon as I know something more, I will get back to you.

    Thread Starter yoancutillas

    (@yoancutillas)

    Hi,

    Thank you for your replies.

    1.

    I have tried to

    • uninstall and reinstall Flexible Subsricption and WooCommerce
    • create a new fresh WP install
    • Change PHP version to 8.1 and 8.0

    The problem always occurs on my side, but it doesn’t occur on the temporary website below for some reasons. So it is probably related to something in my configuration, but I don’t know what exactly. Do you have more test I can perform to identify the origin of the issue? Maybe some logs to place in the code?

    2.

    the problem reproduces on any fresh WP install.

    You can generate a website here and reproduce the issue:

    https://tastewp.com/new/?pre-installed-plugin-slug=woocommerce&pre-installed-plugin-slug=flexible-subscriptions&pre-installed-theme-slug=twentytwentyfive&redirect=edit.php%3Fpost_type%3Dproduct&ni=true

    Purchase a subscription product and see that no subscription is created when using the “Cart” block.

    However, no message is displayed to inform the administrator that “Cart” block is not compatible with Flexible Subscription:

    You should display a warning like this:

    • This reply was modified 1 month, 1 week ago by yoancutillas.
    Plugin Support rzepsen

    (@rzepsen)

    Hi @yoancutillas

    You cannot share such sensitive data. Could you delete it?

    I am reviewing the problem on an ongoing basis. As soon as I know something I will get back to you.

    Plugin Support rzepsen

    (@rzepsen)

    Hi @yoancutillas

    You were right. The plugin is currently not compatible with the block cart at this moment. I do not know why this message does not display in my test environment.

    The addition of this feature is reported to programmers, but we do not know the date of its implementation.

    I will add you to the list of customers interested in this functionality and I will inform you when it happens.

    Thread Starter yoancutillas

    (@yoancutillas)

    Thank you. I am a WordPress plugin developer as well, I know this is an assle, but since WC version 8.3 in November 2023, it is the new WooCommerce standard. “Cart” and “Checkout” blocks are used by default on all new installs. So right now, as you can see, when you create a new website, Flexible Subscriptions is not working by default.

    I am currently making your plugin compatible with my plugins, I am going to recommend your plugin to various people having various configurations, and especially to new users who are going to create a new website (with blocks).

    You are doing a great job and you have all my friendly feelings, just hope this feature is in good priority in your backlog ??

    Plugin Support rzepsen

    (@rzepsen)

    Thank you for reaching out and for your kind words! We truly appreciate your support and the effort you’re putting into making our plugin compatible with your websites.

    You’re absolutely right—since WooCommerce 8.3, the Cart and Checkout blocks have become the new standard for all new installations. We understand that this change affects the default setup, and ensuring compatibility is definitely a priority for us.

    We value your recommendation and the potential exposure to new users. Your feedback reinforces the importance of these updates, and we’ll do our best to address them as soon as possible.

    Thanks again for your patience and support! Please feel free to share any insights or suggestions you have along the way

    Plugin Support rzepsen

    (@rzepsen)

    Hi @yoancutillas

    As we haven’t got any replies, I’m marking this topic as resolved for now.

    Plugin Support rzepsen

    (@rzepsen)

    Hi, @yoancutillas

    I would like to inform you that a new version of the Flexible Subscriptions plugin is available (1.5.0), which should fix the problem ( cancel button issue ) you mentioned.
    I would appreciate it if you could test it. ??

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.