• Hello,

    We offer a subscription service via Woocommerce Subscription plugin. We also have added the Woocommerce Prepaid Subscription plugin which allows people to either choose to pay monthly, or pre-pay for a year at a time.

    The monthly subscription works fine, but the pre-paid option does not work once tax is calculated. The support team for the Prepaid Subscription has pointed us towards our tax plugin being the issue, since the problem is only present when tax is calculated for the yearly amount.

    Regularly, it says “$xxx.xx / every year” but after tax is calculated, it says “$xxx.xx / every array”, and people cannot pay at that point, as it says “Error processing checkout. Please try again.”

    In order to reproduce this issue, simply select “One Monthly Disc” and then check the box to pay yearly. Once you add a shipping address for a state with sales tax, it changes to “every array” instead of “every year”.

    Here is our error log, thank you!

    2023-06-23T20:14:10+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_status() on null in /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-cart.php:1394
    Stack trace:

    0 /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-includes/class-wp-hook.php(308): WC_Subscriptions_Cart::record_base_tax_rates()

    1 /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

    2 /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

    3 /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1408): do_action()

    4 /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-cart.php(315): WC_Cart->calculate in /mnt/data/home/834977.cloudwaysapps.com/sdnpytrrgs/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-cart.php on line 1394

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Brett Porcelli

    (@bporcelli)

    Hi,

    Can you please send a copy of the Prepaid Subscriptions add-on to [email protected]? I’d like to try reproducing this in a local development environment so I can better understand where the conflict lies.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce Prepaid Subscription Error’ is closed to new replies.