Use the Surcharge Expression to negate the rate if the shipping option name contains the word “Ground”.
Add new 'Shipping Director' recordType | Option |
Name | FedEx Free ground shipping only on orders over X |
Expression | true |
Rate Expression | Shipping.FedEx |
Surcharge Expression | [$SubTotalWithDiscounts] > 50 and [$Name].Contains("Ground") ? -[$Rate] : 0 |
Name Expression | [$SubTotalWithDiscounts] > 50 and [$Name].Contains("Ground") ? "Free Ground Shipping" : [$Name] |
Description Expression |
|
See this blog
http://www.noptools.com/blog/22/packing-removes-free-shipping-items
If you still have any questions, email support@noptools.com
You helped me set up my Free Shipping scenario a couple weeks back and it worked great until today:
[$SubTotalWithDiscounts] > 75 and [$Name].Contains("Priority Mail 2-Day") ? -[$Rate] : 0
The problem that we discovered today is that USPS SOMETIMES passes back an option called
"Priority Mail 3 day" for the customer to choose...and this value doesn't get caught by our condition.
How can I make an "or" clause to check for this other string value that might get returned from USPS?
Thanks!
Steve
[$SubTotalWithDiscounts] > 75 and Regex.IsMatch([$Name], "Priority Mail .-Day") ? -[$Rate] : 0