Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paolo8913

    (@paolo8913)

    Update: if i refresh the page, the price change correctly…

    Plugin Author xootix

    (@xootix)

    Hi @paolo8913

    Looks like the add on plugin does not update totals via ajax. Try adding this code to your functions.php & check if it works with ajax

    add_action( 'wp_footer', function(){
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$( document.body ).on('added_to_cart xoo_wsc_cart_updated', function(){
    				// refresh fragment on document load
    				$( document.body ).trigger( 'wc_fragment_refresh' );
    			})
    		})
    	</script>
    	<?php
    } );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Total not updated’ is closed to new replies.