Skip to content

Instantly share code, notes, and snippets.

@rours
rours / functions.php
Last active August 29, 2015 14:08
WooCommerce Qty Select - Update Cart Total On Select Change
<?php
/*-----------------------------------------------------------------------------------*/
/* Update cart total on QTY Select change */
/*-----------------------------------------------------------------------------------*/
function cart_select_change_js() {
?>
<script type="text/javascript">
jQuery(document).ready(function($){
$(".product-quantity .quantity_select select.qty").change(function(){
$("section.entry .woocommerce").append('<div style="display:none" class="blockUI"></div>');