• Resolved chrislomas

    (@chrislomas)


    Hi there,

    the pick_smallest_rate function does not work when the cost of a shipping option is zero, because the $rate variable is set to 0 and the !$rate test succeeds, when it should actually fail because $rate is set, it’s just set to 0 cost. To fix this, you need to test for !isset($rate) instead of !$rate. You also need to change the $final_rate !== false to isset($final_rate) in the calculate_shipping function. I’ve checked this and it works now.

    Thanks,

    Chris

    https://wordpress.org/plugins/oik-weightcountry-shipping/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Zero cost shipping’ is closed to new replies.