With WooCommerce + Subscriptions + Stripe or Square, using the checkout block is not properly showing the subscription recurring totals on the checkout and are instead being rendered as simple/single products.
This issue is caused by the WC Subscriptions extension being inited before WooCommerce Core has loaded causing this block of code to never run because the Automattic\WooCommerce\Blocks doesn't exist yet.
To Reproduce
Activate WC 7.9, Subscriptions 5.3.1 & Square or Stripe
Create a new checkout page using checkout blocks
Add a subscription product to your cart
Notice in the Order Summary section the cart item prices are not showing as recurring totals
Expected behavior
Actual behavior
Product impact
[x] Does this issue affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Does this issue affect WooCommerce Payments? yes/no/tbc, add issue ref
This bug does not affect WooPayments as the checkout block class exists at the time of initing subscriptions core.
Describe the bug
With WooCommerce + Subscriptions + Stripe or Square, using the checkout block is not properly showing the subscription recurring totals on the checkout and are instead being rendered as simple/single products.
This issue is caused by the WC Subscriptions extension being inited before WooCommerce Core has loaded causing this block of code to never run because the
Automattic\WooCommerce\Blocks
doesn't exist yet.To Reproduce
Expected behavior
Actual behavior
Product impact
This bug does not affect WooPayments as the checkout block class exists at the time of initing subscriptions core.
Additional context