• Resolved zoltan900

    (@zoltan900)


    Wondering if there is a way to include Tax in Total in Min/Max cost check.

    I found filter alg_wc_custom_shipping_methods_evaluate_cost_args_package but it fires after that check is done. Currently I managed to bypass this by changing $total in function is_available() to $package[‘cart_subtotal’] but a filter or an option would be nicer so we wouldn’t need to implement this on every update.

Viewing 1 replies (of 1 total)
  • Plugin Author Dhruvin

    (@dhruvin)

    Hi @zoltan900

    I have just released an update to the plugin with a filter added for modifying the totals.

    Filter name alg_wc_custom_shipping_totals

    Filter usage:

    add_filter( 'alg_wc_custom_shipping_totals', 'alg_update_totals', 10, 2 );
    
    function alg_update_totals( $cost, $package ) {
    	return $package['cart_subtotal'];
    }

    Please let me know if you face any issues.

    Best Regards,
    Dhruvin

Viewing 1 replies (of 1 total)
  • The topic ‘Include tax in min/max cost calculation’ is closed to new replies.