[Plugin: WooCommerce – excelling eCommerce] Add Hidden shipping fields?
Im trying to customize my checkout page. I want to fill out my shipping fields with some data i get from a webserivce. This works fine with a input field which populates a set of radio buttons, then the user select one option and my values gets copied to the shipping fields. BUT
I dont know how to hide these fields form the user? They are not supposed to edit them after, only to fill them out with data from my selector.
$address_fields['shipping_company']['type'] = "hidden";
This will remove the whole field from the form.
I also tried
$address_fields['shipping_company']['class'] = array('hide_me');
Which is a class setting display to none. This way my elements do exist but my script filling out values dont work then.
How can I make the shipping fields hidden?
- The topic ‘[Plugin: WooCommerce – excelling eCommerce] Add Hidden shipping fields?’ is closed to new replies.