Fixed: Handle deleted service products during checkout
Co-authored-by: Name <azharbhat.qlo098@webkul.in>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user