0

I am using Display a checkbox that add a fee in Woocommerce checkout page answer code, that displays a checkbox in checkout page that adds a fee when checked.

I would like to get this checkbox visible only when 'Express Delivery' is selected. If any other delivery option (Standard Delivery, Local Pick up) is selected then the checkbox should be hidden.

Any ideas would be amazing and thank you for taking the time to read this.

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399
Justin
  • 9
  • 2
  • I would guess that a woocommerce expert would solve this problem in less than a minute. – react_or_angluar Nov 11 '20 at 01:02
  • 1
    If you don't provide in your question the correct shipping rate id for "Express Delivery" nobody can really help you… – LoicTheAztec Nov 11 '20 at 02:14
  • Hey @LoicTheAztec you are correct, sorry it was late when i was adding this, sorry.. Im using a plugin to allow for table rate shipping and the id for this is jem_table_rate_26_express-delivery. The Id for Standard delivery is 'flat_rate:19' and the id for local pickup is 'local_pickup:20' However my shipping works on postcodes so I would need this to work for each of my 6 zones. – Justin Nov 11 '20 at 09:37
  • @Justin Please don't add in your question an existing answer code if you don't make real changes to it, the link to the answer code is enough. – LoicTheAztec Nov 11 '20 at 10:05
  • @LoicTheAztec Oh man!! sorry, can you tell im a newbie on this...hahah! – Justin Nov 11 '20 at 10:23

0 Answers0