[Resolved] When changing the credit card state while not logged in, the tax will not update
When the ajax calls are made to edd_ajax_get_states_field the select box that is returned to replace the existing one on the form no longer has the id of “card_state” and is instead blank. The subsequent call to refresh the cart calculation then has no “card_state” value to pull from and ignores it for tax calculations.
Line 289 of includes/ajax-functions.php inside edd_ajax_get_states_field add in to the $args for the select box an id that matches the name like: ‘id’ => $_POST[‘field_name’]
- The topic ‘[Resolved] When changing the credit card state while not logged in, the tax will not update’ is closed to new replies.