Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
81 stars 29 forks source link

Subscriptions Checkout Blocks integration not loading #486

Closed mattallan closed 11 months ago

mattallan commented 11 months ago

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.

image

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

  1. Activate WC 7.9, Subscriptions 5.3.1 & Square or Stripe
  2. Create a new checkout page using checkout blocks
  3. Add a subscription product to your cart
  4. Notice in the Order Summary section the cart item prices are not showing as recurring totals

Expected behavior

image

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