I didn’t realise who you were. Well done and thank you.
The plugin now seems to cause the max
attribute to be set to 0
, and this disables the numeric functions in the mini cart. You can test this here (after adding something to the cart first).
The cart shortcode is still OK, but the cart block causes a server error with this stack trace:
[25-Jan-2024 07:25:57 UTC] PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits::limit_to_multiple(): Argument #1 ($number) must be of type int, string given, called in ROOT/wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php on line 59 and defined in ROOT/wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php:72
Stack trace:
#0 ROOT/wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php(59): Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits->limit_to_multiple()
#1 ROOT/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php(487): Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits->get_add_to_cart_limits()
#2 [internal function]: Automattic\WooCommerce\StoreApi\Schemas\V1\ProductSchema->get_item_response()
#3 ROOT/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php(113): array_map()
#4 ROOT/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\AbstractProductGrid->render()
#5 ROOT/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback()
#6 ROOT/wp-includes/class-wp-block.php(244): WP_Block->render()
#7 ROOT/wp-includes/class-wp-block.php(244): WP_Block->render()
#8 ROOT/wp-includes/blocks.php(1484): WP_Block->render()
#9 ROOT/wp-includes/blocks.php(1522): render_block()
#10 ROOT/wp-includes/class-wp-hook.php(324): do_blocks()
#11 ROOT/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#12 ROOT/wp-includes/blocks/post-content.php(48): apply_filters()
#13 ROOT/wp-includes/class-wp-block.php(258): render_block_core_post_content()
#14 ROOT/wp-includes/class-wp-block.php(244): WP_Block->render()
#15 ROOT/wp-includes/class-wp-block.php(244): WP_Block->render()
#16 ROOT/wp-includes/blocks.php(1484): WP_Block->render()
#17 ROOT/wp-includes/blocks.php(1522): render_block()
#18 ROOT/wp-includes/block-template.php(260): do_blocks()
#19 ROOT/wp-includes/template-canvas.php(12): get_the_block_template_html()
#20 ROOT/wp-includes/template-loader.php(106): include('/home/gboldev/p...')
#21 ROOT/wp-blog-header.php(19): require_once('/home/gboldev/p...')
#22 ROOT/index.php(17): require('/home/gboldev/p...')
#23 {main}
thrown in ROOT/wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php on line 72