I have looked for this all over the internet and couldn’t find any clean solution. I did find premium plugin but it’s a waste to pay for whole plugin when you need just one small chunk of it’s features. The code bellow will add conditional field to the flat rate shipping settings. And filter available shipping methods depending on the set condition.

Continue reading