Merge branch 'develop' into gli-2967_2

This commit is contained in:
amit sharma
2026-09-17 14:40:27 +05:30
64 changed files with 2093 additions and 1232 deletions

View File

@@ -1882,7 +1882,7 @@ class AdminImportControllerCore extends AdminController
}
$objServiceProduct = new Product($idServiceProduct);
if (Product::SELLING_PREFERENCE_WITH_ROOM_TYPE == $objServiceProduct->selling_preference_type) {
if (Product::isSellableWithRoomType($objServiceProduct->id)) {
$objRoomTypeServiceProduct->addRoomProductLink(
$objServiceProduct->id,
$product->id,
@@ -2310,12 +2310,12 @@ class AdminImportControllerCore extends AdminController
$info['shop'] = explode($this->multiple_value_separator, $info['shop']);
RoomTypeServiceProduct::deleteRoomProductLink($product->id);
if (Product::SELLING_PREFERENCE_WITH_ROOM_TYPE == $product->selling_preference_type) {
if (Product::isSellableWithRoomType($product->id)) {
$objRoomTypeServiceProduct = new RoomTypeServiceProduct();
if (isset($info['id_room_types']) && $info['id_room_types']) {
$objRoomTypeServiceProduct->addRoomProductLink(
$product->id,
$product->id_room_types,
$info['id_room_types'],
RoomTypeServiceProduct::WK_ELEMENT_TYPE_ROOM_TYPE
);
}