function calculateDeliveryCost(subtotal){
        if(!delivery_selected){
            delivery_cost = 0;
            $("#delivery-cost").css("color", "#fd7762");
        }
        else{
            if (subtotal > 0 && subtotal < 150 ){
                delivery_cost = 5;
                $("#delivery-cost").css("color", "#000");
            }
            else{
                delivery_cost = 0;
                $("#delivery-cost").css("color", "#fd7762");
            }
        }
        
        return delivery_cost;
    }
// delivery is free for orders over $150 CAD
delivery is free for orders over $150 CAD
delivery is free for orders over $150 CAD
function calculateDeliveryCost(subtotal){
        if(!delivery_selected){
            delivery_cost = 0;
            $("#delivery-cost").css("color", "#fd7762");
        }
        else{
            if (subtotal > 0 && subtotal < 150 ){
                delivery_cost = 5;
                $("#delivery-cost").css("color", "#000");
            }
            else{
                delivery_cost = 0;
                $("#delivery-cost").css("color", "#fd7762");
            }
        }
        return delivery_cost;
    }
function calculateDeliveryCost ( subtotal ) { if ( ! delivery_selected ) { delivery_cost = 0 ; $ ( "#delivery-cost" ) . css ( "color" , "#fd7762" ) ; } else { if ( subtotal > 0 && subtotal < 150 ) { delivery_cost = 5 ; $ ( "#delivery-cost" ) . css ( "color" , "#000" ) ; } else { delivery_cost = 0 ; $ ( "#delivery-cost" ) . css ( "color" , "#fd7762" ) ; } } return delivery_cost ; }
delivery is free for orders over $150 CAD
delivery is free for orders over $150 CAD