WordPress.org

Support

Support » Plugins and Hacks » [Resolved] When changing the credit card state while not logged in, the tax will not update

[Resolved] When changing the credit card state while not logged in, the tax will not update

  • Reason:
    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.

    Fix:
    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’]

    http://wordpress.org/plugins/easy-digital-downloads/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] When changing the credit card state while not logged in, the tax will not update’ is closed to new replies.