title: Woocommerce update shipping methods in checkout via ajax
body: <p><strong>What i'm trying to accomplish:</strong> In woocommerce, I need to check a date delivered via a datepicker field when user selects a date, and then update shipping options accordingly via ajax, so that things like free shipping can be taken out when they are not appropriate.</p>
  
  <p><strong>What I currently know/have figured out:</strong> I currently have the jQuery event firing and sending through a date to a custom script, which is kinda where I need to do. I have not been able to find a function within woocommerce classes that returns just the shipping data, so I don't think I can call that and return it as a fragment, as they do for the checkout already.</p>
  
  <p>However, I did find that </p>
  
  <pre><code>WC_AJAX::update_order_review()
  </code></pre>
  
  <p>has an action call within it, and I have successfully hooked a function onto that action, AND i've been able to fire off the </p>
  
  <pre><code>t( 'body' ).trigger( 'update_checkout' );
  </code></pre>
  
  <p>which fires off the action that updates the checkout review block. </p>
  
  <p><strong>My real question:</strong> All this is great, and I'ts looking like its heading in the right direction, but I don't know woocommerce well enough to know how to get the shipping methods within my hooked action to unset them as necessary. Does anyone know if I can get them through the $woocommerce global object, and then have them be read by the rest of that WC_AJAX method??</p>
  
  <p>Any help here would be greatly appreciated.</p>
  
  <p>** notes: yes, I know thats a 't' and not a '$' in the jQuery. Not a mistake</p>