bootscore: Conflict with WooCoommerce/Subscriptions

Describe the bug

When adding a variable product to cart (from single product page) the spinner spins forever, however the product IS added to cart.

Steps to reproduce

  1. I setup fresh WP Install with BS theme (no child)
  2. Added WooCommerce and WooCommerce Subscriptions (but happens also with just WC)
  3. Created a variable product with one variation (subscription monthly membership)
  4. Tried to add that product to cart

Screenshots and Additional Info

Screenshot 2024-06-26 at 18 09 38
  • Issue goes away immediately when using another theme, in which case, adding the product to cart will shortly spin the button spinner then reload the page and go to cart, as expected
  • Product is added to cart ANYWAY, but page isn’t reloaded and redirected to cart as it should (and does with another theme)
  • No error in console
  • Requests show that the product IS added to cart in network console
  • Enable AJAX add to cart buttons on archives is active, but if deactivated, no change.

This issue happens only with the BS theme, child or parent, no matter. Parent is fresh download from two days ago via composer. Sole change to theme: Change the name into what it should be: bootscore instead of bootscore-main

Website link

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

First of all, main branch is the development branch and nobody has said that this is stable, main branch is WIP. For stable themes use the releases. As you can see, v6 is a prerelease marked as beta1, because it still lacks some features and some minor bugfixes that come with v6 stable. If you cloned it, of course you have an unfinished theme that is not production ready. v5.3.4 is the last stable version, v6beta1 is far better and you should give it a try.

So, what happened, let me explain:

v6 ajax cart has been refactored into a full working cart. Because we do not need the cart twice, v6 stable will skip the cart page and leads direct to the checkout https://github.com/bootscore/bootscore/pull/755 (merged). In this PR, I overlooked that the skip cart must be bound to the Woo ajax settings and fixed this in https://github.com/bootscore/bootscore/pull/792 but this is still in reviewing process.

In your installation (latest main), there is already the feature to skip the cart, but lacks enable/disable it via Woo settings. And if you try to disable ajax cart as described in the docs and mandatory if you are using the subscription plugin, nothing happened.

Clears this up?

p.s. this is not a breaking change, everything will work as before when finished, just a new feature but WIP.