Fix price calculation in order confirmation email

This commit is contained in:
Amit sharma
2026-02-27 10:14:09 +05:30
parent 4199e40098
commit 2a86378bae
11 changed files with 321 additions and 159 deletions

View File

@@ -1901,7 +1901,7 @@ class AdminImportControllerCore extends AdminController
}
$objServiceProduct = new Product($idServiceProduct);
if (Product::SELLING_PREFERENCE_WITH_ROOM_TYPE == $objServiceProduct->selling_preference_type) {
if (Product::isSellableWithRoomType($objServiceProduct->selling_preference_type)) {
$objRoomTypeServiceProduct->addRoomProductLink(
$objServiceProduct->id,
$product->id,
@@ -2329,12 +2329,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->selling_preference_type)) {
$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
);
}