eeshankumar
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Okay, I will try again. Thank you!
- This reply was modified 7 years, 4 months ago by eeshankumar.
Hi Con,
I have a filter for the fields available. I have it kept there via the code below in my functions.php file, but it doesn’t seem to be going over to stripe, as when I test a charge, it doesn’t show up. So is there a different place I need to add it to the checkout page? Where in this plugin does it use that field when sending the charge to stripe?
add_filter( 'woocommerce_checkout_fields', 'custom_edit_checkout_fields' ); function custom_edit_checkout_fields( $fields ) { $billing_fields[billing_first_name] = $fields["billing"][billing_first_name]; $billing_fields[billing_last_name] = $fields["billing"][billing_last_name]; $billing_fields[billing_email] = $fields["billing"][billing_email]; $billing_fields[billing_postcode] = $fields["billing"][billing_postcode]; $billing_fields[billing_postcode]["clear"] = true; $fields["billing"] = $billing_fields; return $fields; }
I actually think this is working. So please ignore for now. Thank you!
I have done so and you should have received an email notification.
Viewing 4 replies - 1 through 4 (of 4 total)