Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi! I actually figured this one out on my lonesome this morning, basically you need to navigate to wherever you installed this plugin, and open the “checkout-address-autofill-template.php” file in a code editor.

    Find this section of code, on lines 2226:

    if(get_option(‘wc_af_show_below’) == ‘1’) :
    add_action(‘woocommerce_after_checkout_billing_form’, array($this, ‘wcaf_custom_checkout_field’));
    else :
    add_action(‘woocommerce_before_checkout_billing_form’, array($this, ‘wcaf_custom_checkout_field’));
    endif;

    — So from here, what I did is simply changed both values to “before” LOL. Probably not the best way, but it does work! So now, your code would look like this instead:

    if(get_option(‘wc_af_show_below’) == ‘1’) :
    add_action(‘woocommerce_before_checkout_billing_form’, array($this, ‘wcaf_custom_checkout_field’));
    else :
    add_action(‘woocommerce_before_checkout_billing_form’, array($this, ‘wcaf_custom_checkout_field’));
    endif;

    — Hope that helps! If someone finds a neater, cleaner way to do it, please feel free to correct me.

    • This reply was modified 5 years, 3 months ago by kristinadowns.

    I am having the same issue.

    Thread Starter kristinadowns

    (@kristinadowns)

    bumping ??

Viewing 3 replies - 1 through 3 (of 3 total)