Ron Rennick
4fddface47
update text domain in plugins/woocommerce-blocks ( #42717 )
...
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 14:12:36 -08:00
Tung Du
a441329dc8
Fix: Mini-Cart block shows wrong total if theres multiple installs on the same domain ( https://github.com/woocommerce/woocommerce-blocks/pull/11257 )
2023-10-18 07:21:15 +00:00
Darren Ethier
f708593adb
Add Color Panel ( https://github.com/woocommerce/woocommerce-blocks/pull/10062 )
...
* Add new ColorPanel component
* Implement new ColorPanel component for the Mini-Cart
* Move ColorPanel types into their own types.ts file alongside the ColorPanel component
* Add useColorPanelStyles hook
* Rename classes to className
* Disable @wordpress/no-unsafe-wp-apis
* Fix tests: Move defaultColorItem object to utils file
* Remove unnecssary types from QuantityBadge
* Fix conflicts
* Remove context
* Fix color picker JS error
* Migrate attribute data to be compatible with ColorPanel component
* Fix incompatible attributes
* Remove useColorPanelStyles hook
* migrateAttributesToColorPanel JS unit tests
* PHP MiniCartUtils tests
* Remove unncessary code for classNames in MiniCart edit
---------
Co-authored-by: tjcafferkey <tjcafferkey@gmail.com>
2023-07-21 10:35:32 +01:00
Albert Juhé Lluveras
b5080e379d
Prevent prefetched Cart payload causing wrong values with cached Mini-Cart block ( https://github.com/woocommerce/woocommerce-blocks/pull/10029 )
...
* Prevent prefetched Cart payload causing wrong values with cached Mini-Cart block
* Pass Cart Totals object entirely
* Code cleanup
* Fixes and code cleanup
* Update Mini-Cart local storage when adding or removing products from cart
2023-06-30 16:05:27 +02:00
Albert Juhé Lluveras
99dd12e6c7
Mini-Cart: don't include shipping price ( https://github.com/woocommerce/woocommerce-blocks/pull/9914 )
2023-06-20 14:41:37 +02:00
Luigi Teschio
bc6dc106ab
Mini Cart Block: show the total price, including tax, according to the option ( https://github.com/woocommerce/woocommerce-blocks/pull/9878 )
...
* Mini Cart Block: show the total price, including tax, according to the option
* Fix tests in PR 9878 (https://github.com/woocommerce/woocommerce-blocks/pull/9880 )
* add unit test
---------
Co-authored-by: Karol Manijak <karol.manijak@automattic.com>
2023-06-19 17:14:35 +02:00
Roy Ho
a67948d7e1
Ensure aria-label is showing correct value based on setting ( https://github.com/woocommerce/woocommerce-blocks/pull/9672 )
...
* Ensure aria-label is showing correct value based on setting
* Reuse same format code
2023-06-01 05:41:43 -07:00
Albert Juhé Lluveras
27e3a9a3cc
Fix invisible Mini-Cart badge in themes without <body> background ( https://github.com/woocommerce/woocommerce-blocks/pull/9601 )
2023-05-30 10:36:29 +02:00
Albert Juhé Lluveras
a04c00a79f
Make Mini-Cart block work well with caching plugins ( https://github.com/woocommerce/woocommerce-blocks/pull/9493 )
...
* Make Mini-Cart block work well with caching plugins
* Add tests
* Add back aria-label to Mini-Cart menu
* Fetch Mini-Cart data before page finishes loading
* Store and retrieve Mini-Cart values from localStorage for better performance
* Update styles as early as possible
* Reorder code
* Remove overrideTotals param from updateTotals() function
* Update tests
* Initialize local storage inside a function and add act to filter tests
* Replace void with undefined types in several funtions
* Fix 0 quantity badge appearing on page load
2023-05-23 09:28:40 +02:00