Custom field for shipping method in Woocommerce
-
I need to add custom (and required) text field for specific shipping method in Woocommerce, that will be validated and will be visible in admin order pages and emails. It needs to be visible in cart AND in checkout page.
I have made my own little customization based on answer from: https://stackoverflow.com/a/63195406/2375074 – it’s basically what i want, but the solution is for select input field and i need simple text field.
The problem is that the validation from my code doesn’t work properly(it always shows empty error) and i have no information about that field in admin pages or emails.
I would really appreciate if someone could point me to right direction with my code.
- The topic ‘Custom field for shipping method in Woocommerce’ is closed to new replies.