admin管理员组

文章数量:1124166

I am currently developing a small block for WordPress/WooCommerce and now I have a problem that I can't solve easily.

To summarize:
I am looking for a way to update my block in the frontend when changes have been made in the cart block (e.g. the user increases the number of a product in the shopping cart).

My block is currently set up as a server-side render block and the corresponding markup is generated by PHP via render_callback and then output.

Is there a way to update the block in the frontend after an event from the cart block? And if not, what methods would there be to reach the target?

Thanks in advance.

Cheers

本文标签: javascriptUpdate a serverside render Block when woocommerce cart block changed