Fixed: Handle deleted service products during checkout

Co-authored-by: Name <azharbhat.qlo098@webkul.in>
This commit is contained in:
amit sharma
2026-09-29 17:27:17 +05:30
parent d8cf510fe5
commit bf3ef61ba3

View File

@@ -232,6 +232,9 @@ class ServiceProductCartDetail extends ObjectModel
$context = Context::getContext();
foreach ($serviceProducts as $product) {
$objProduct = new Product($product['id_product'], false, $language->id);
if (!Validate::isLoadedObject($objProduct)) {
continue;
}
if (!$objProduct->booking_product) {
$quantity = $product['quantity'] ? (int) $product['quantity'] : 1;