[Plugin: WooCommerce] .js Script for Cart Update on Shipping Change
-
Hey all,
Can’t seem to find any documentation on this, and WooCommerce both a) doesn’t offer you any support at all, whatsoever, unless you’ve bought a theme or plugin, and b) has shut down their official support forums. Super helpful.
I’m attempting to customize the checkout page of a WooCommerce installation. On said checkout page, there are a variety of shipping options, selected via Radio Button inputs. I want to call a function when one of those radio button inputs is changed.
I tried writing a jQuery .change() function, but it isn’t doing anything, I assume because WooCommerce itself is doing something fairly unique involving those radio buttons, possibly involving AJAX. When I select a new shipping method, the totals box greys out for a second while it reloads, so it surely seems that way.
My question is: how can I trigger an additional function when the shipping method is changed, AND how can I create my OWN trigger to change the shipping method?
- The topic ‘[Plugin: WooCommerce] .js Script for Cart Update on Shipping Change’ is closed to new replies.