admin管理员组

文章数量:1417064

I wish to hide a specific checkout field based on shipping class. So if the cart contains a product with that shipping class an input fields should be hidden.

Anyone who can help me archive this?

Thanks

I wish to hide a specific checkout field based on shipping class. So if the cart contains a product with that shipping class an input fields should be hidden.

Anyone who can help me archive this?

Thanks

Share Improve this question asked Aug 6, 2019 at 6:24 jlockjlock 36 bronze badges 1
  • It is a regular field like the address 2. If I can just add a class to the field or inject some css to hide it, it will be fine – jlock Commented Aug 8, 2019 at 12:22
Add a comment  | 

1 Answer 1

Reset to default 0

By "specific checkout field" do you mean shipping method. Because there is a free plugin which can Hide WooCommerce Shipping Method Based on Shipping Class and Shipping Zone.

If you want to hide the shipping method please let me know I will show how you can do it with the help of the above plugin.

本文标签: WooCommerceIf shipping class hide field