How to Use

Ok, as I already mentioned before, the plugin is incredibly simple – once you install it on your website, just click “Activate” button in Plugins > All plugins menu and that’s pretty much it.

activate simple cart autoupdate plugin

Configuration with Hooks

Plugin doesn’t require any configuration but if you really need to change the way it works, you can do it with hooks. More hooks can be added by your requests.

How to change the time delay

The plugin allows you to control the time delay from when a customer changes product quantities and when the cart updates. By default it is set to 1 second, but you can change it to whatever you want with rudr_simple_cart_autoupdate_delay filter hook.

For example let’s change it to 5 seconds:

add_filter( 'rudr_simple_cart_autoupdate_delay', function( $delay ) {
	return 5000; // time in milliseconds
} );

How to display “Cart updated” notice

By default my plugin turns this notice off because sometimes it could get very annoying. And more than that – WooCommerce scrolls the page to this notice every time it appears. But if you need it, you can use this filter hook:

add_filter( 'rudr_simple_cart_autoupdate_hide_notice', '__return_false' );

And here we have the notice:

Update WooCommerce cart automatically on quantity change