Added feature for adding standard product in cart

This commit is contained in:
Shreesh Arora
2025-02-26 11:07:31 +05:30
parent 950b37ed1c
commit ec23dbd4f3
98 changed files with 8153 additions and 3882 deletions

View File

@@ -1061,6 +1061,20 @@ class AdminCartsControllerCore extends AdminController
}
}
public function ajaxProcessUpdateProductQuantity()
{
$params = Tools::getValue('params');
$idProduct = (int) $params['id_product'];
$idCart = (int) $params['id_cart'];
$this->context->cart = new Cart($idCart);
if ($this->tabAccess['edit'] === '1') {
$id_hotel_service_product_cart_detail = (int) $params['id_hotel_service_product_cart_detail'];
$product = new Product($idProduct, true, $this->context->language->id);
}
}
// Process to get extra demands of any room while order creation process form.tpl
public function ajaxProcessGetRoomTypeCartDemands()
{