# Refresh the cart summary

```php
add_action('woocommerce_before_cart', function (){
?>
<script type="text/javascript">
	jQuery( document ).ready(function() {
		jQuery( window ).load(function() {
			jQuery("[name='update_cart']").removeAttr('disabled');
			jQuery("[name='update_cart']").trigger("click");
		});
	});
</script>
<?php
});
```
