minor fixes

This commit is contained in:
ludo
2023-12-09 21:02:28 +01:00
parent b5da5fc881
commit 2a429e4163
49 changed files with 448 additions and 266 deletions

View File

@@ -19,7 +19,7 @@ class Baskets
public static function getBasketTotal($deliveryId = false, $deliveryTypeId = false)
{
$saleChannelId = Deliveries::getSaleChannelId($deliveryId);
return self::getBasketSummary($saleChannelId, $deliveryTypeId);
}
@@ -41,7 +41,7 @@ class Baskets
$totalWeight += $weight;
}
$shipping = DeliveryTypeCalculations::getPriceByDeliveryType($deliveryTypeId, $totalWeight);
$data = [
'detail' => $detail,
'total' => $total,
@@ -84,7 +84,7 @@ class Baskets
$weight = $offer->weight * $item->quantity;
$totalWeight += $weight;
}
return $totalWeight;
}