• Hello.

    I’ve noticed that the plugin contains faulty logic for calculating the threshold for free shipping. The current cart amount that gets compared has the current shipping method’s tax included to the total, while what should happen is that it should get the total + tax of products only, ignoring tax of the current shipping method.

    Code in question at line 258 of class-woocommerce-shopup-venipak-shipping-admin-pickup.php
    if ($min_amount_for_free_shipping > 0) {
    $order_cost = WC()->cart->get_cart_contents_total() + WC()->cart->get_taxes_total();
    if ($order_cost >= $min_amount_for_free_shipping) {
    $rate[‘cost’] = 0;
    }
    }

  • You must be logged in to reply to this topic.