Quantcast
Channel: WordPress.org Forums » [WooCommerce Email Validation] Support
Viewing all articles
Browse latest Browse all 30

Field appearing in wrong place on WC 2.5

$
0
0

Replies: 3

On WC 2.5, the field appears in the wrong place for me. WC 2.5 appears to have moved the “email” field, so that it’s not last. As a result, this plugin’s method of adding its extra field last doesn’t make it appear next to the existing email field – instead, they are far apart (and the extra field can also be on its own in the right-hand column).

To fix this, I:

1) Hooked woocommerce_billing_fields instead of woocommerce_checkout_fields (which means that you should also remove the ‘billing’ key in the add_checkout_field() method).

2) Spliced in the field into the array so that it’s immediately after billing_email.

Handy snippet: http://eosrei.net/comment/287

This fixed it.

David

https://wordpress.org/plugins/woocommerce-email-validation/


Viewing all articles
Browse latest Browse all 30

Trending Articles