Checkout fields override
-
It seems not possible to override certain fields according to: https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
My code to override eg the Billing street:
add_filter( 'woocommerce_checkout_fields', 'custom_wc_checkout_fields',10,1); function custom_wc_checkout_fields( $fields ) { $fields['billing']['billing_address_1'] = array( 'label' => __('Street & No','woocommerce'), 'placeholder' => _x('Street & No', 'placeholder', 'woocommerce'), 'required' => false, 'class' => array('form-row-wide'), 'clear' => true ); return $fields; }
What am i doing wrong?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Checkout fields override’ is closed to new replies.