Jump to content

Edit History

Alex

Alex

My solution is:

$carriers = Carrier::getCarriersForOrder(Country::getIdZone($address_delivery->id_country), $id_group, $cart);
foreach ($carriers as $value) {
    if($value["id_carrier"] == $cart->id_carrier){  //if is my carrier
        $total_shipping_tax_incl = $value["price"];
        $total_shipping_tax_excl = $value["price_tax_exc"];
        $carrier_tax_rate = Tax::getCarrierTaxRate($value["id_carrier"]);
    }
}

Where $id_group is user group id.

Alex

Alex

My solution is:

$carriers = Carrier::getCarriersForOrder(Country::getIdZone($address_delivery->id_country), $id_group, $cart);
foreach ($carriers as $value) {
        $total_shipping_tax_incl = $value["price"];
        $total_shipping_tax_excl = $value["price_tax_exc"];
        $carrier_tax_rate = Tax::getCarrierTaxRate($value["id_carrier"]);
}

Where $id_group is user group id.

×
×
  • Create New...