Write a PHP snippet for Woocommerce

Job ID: 31163611

Budget: $10 – $30 USD

Hi!
I need a woocommerce snippet in PHP, that will work like that:

IF:
- user have a free shipping from any coupon

THEN:
- hide "Free shipping" method
- discount to FREE shipping method called "shipping_method_0_easypack_parcel_machines"
- show information in shipping name that its free

It's easy task, on stackoverflow are a lot of examples, but none of them is working for me.

I'm using carflows for checkout