The documentation for WooCommerce Blocks has moved to the WooCommerce monorepo.
Please refer to the documentation in the new location as the files in this repository will no longer be updated and the repository will be archived.
Zip file for testing: woocommerce-gutenberg-products-block.zip
Fix PHP notice in Mini Cart when prices included taxes. (6537)
- Go to WooCommerce > Settings and check Enable tax rates and calculations.
- Go to the Tax tab in the settings and check Yes, I will enter prices inclusive of tax and Display prices during cart and checkout: Including tax.
- Add the Mini Cart block to a post or page.
- Visit that post or page in the frontend, and verify there isn't a PHP notice.
Before | After |
---|---|