This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Description
Describe the bug
When adding items to the cart (it seems to happen mostly when doing so from the main shop page), the item does not appear in the cart until you do a hard refresh. When using the default WP theme, WooCommerce Blocks and Gutenberg, the issue is there. If WooCommerce Block is deactivated, the issue does not occur.
To reproduce
- Go to WooCommerce > Settings > Products > check both 'add to cart' behaviors to redirect and use AJAX, then save
- On your main shop page, add the All Products block
- View shop page in front-end and click "add to cart" for any product
- Should be redirected to the cart page but the product is not there
- Make sure to try in multiple browsers with no items in the cart and a clear cache
Expected behavior
Item should immediately appear in the cart
Environment
WordPress (please complete the following information):
- Core version: 5.9.3
- Gutenberg version (if installed): 13.1.0
- WooCommerce version: 6.4.1
- WooCommerce Blocks version: 7.5.0
- Site language: English
- Any other plugins installed: no
Desktop (please complete the following information):
- OS: mac
- Browser: chrome, safari and ff