How to provide free shipping using a coupon?

How to provide free shipping using a coupon?

Step 1. Create an empty cart price rule at Magento Admin Panel → Marketing → Cart Price Rules → Add New Rule. The only thing that should be added to the promotion is the coupon name:







All other settings should be empty:



Step 2. Set up a shipping rule at Magento Admin Panel → Sales → Shipping Rules → Add Rule. Select the shipping option that should be discounted to 0 in Shipping Carriers and Methods field:



It is possible to add Conditions, if required:



Step 3. It's critical to tie the shipping rule to the cart price rule. It is done by going to the Coupons and discounts tab inside the shipping rule and copying the created coupon into the Coupon Codes field:



Here is how the cart page is going to look before the coupon code application:



And after it has been used (only the shipping cost is discounted, whereas the price of the items in cart remains the same):