Hello David,
Thanks for reaching out to us.
To resolve this issues, Please, follow this steps:
Go to this path: JROOT/administrator/components/com_easystore/src/Checkout/OrderManager.php on line nearby 827.
Check this code,
private function getProducts()
{
$products = $this->getOrderItem()->products ?? [];
if (empty($products)) {
return $products;
}
return array_map(function ($item) {
$item->weight = $item->weight ?? 0;
$unit = $item->has_variants
? (isset($item->variant_data->unit) ? $item->variant_data->unit : (isset($item->unit) ? $item->unit : null))
: (isset($item->unit) ? $item->unit : null);
$item->unit = $unit;
$item->weight_total = bcmul($item->weight, (int) $item->cart_item->quantity, 2);
$item->weight_total_with_unit = SettingsHelper::getWeightWithUnit($item->weight_total, $unit);
$item->weight_with_unit = SettingsHelper::getWeightWithUnit($item->weight, $unit);
return $item;
}, $products);
}
please replace this code with this one,
private function getProducts()
{
$products = $this->getOrderItem()->products ?? [];
if (empty($products)) {
return $products;
}
return array_map(function ($item) {
$item->weight = isset($item->weight) && is_numeric($item->weight) ? (string) $item->weight : '0';
$unit = $item->has_variants
? (isset($item->variant_data->unit) ? $item->variant_data->unit : (isset($item->unit) ? $item->unit : null))
: (isset($item->unit) ? $item->unit : null);
$item->unit = $unit;
$item->weight_total = bcmul($item->weight, (string)(int) $item->cart_item->quantity, 2);
$item->weight_total_with_unit = SettingsHelper::getWeightWithUnit($item->weight_total, $unit);
$item->weight_with_unit = SettingsHelper::getWeightWithUnit($item->weight, $unit);
return $item;
}, $products);
}
Thanks