Updated: Replaced the product id with id room type in the csv samples and csv import controller

This commit is contained in:
vishalsingh.qlo325
2025-01-21 13:10:39 +05:30
parent 950b37ed1c
commit efa94453cd
3 changed files with 4 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ class AdminImportControllerCore extends AdminController
'no' => array('label' => $this->l('Ignore this column')),
'room_num' => array('label' => $this->l('Room No *'),),
'floor' => array('label' => $this->l('Floor')),
'id_product' => array('label' => $this->l('Product ID *')),
'id_product' => array('label' => $this->l('Room Type ID *')),
'id_status' => array(
'label' => $this->l('Room status (1/2/3)'),
'help' => $this->l('1 = Active, 2 = Inactive, 3 = Temporarily Inactive')),
@@ -2039,7 +2039,7 @@ class AdminImportControllerCore extends AdminController
}
} else {
$this->errors[] = sprintf(
Tools::displayError('Invalid ID Product for %1$s (ID: %2$s).'),
Tools::displayError('Invalid ID Room Type for %1$s (ID: %2$s).'),
(isset($info['room_num']) && !empty($info['room_num']))? Tools::safeOutput($info['room_num']) : 'No Name',
(isset($info['id']) && !empty($info['id']))? Tools::safeOutput($info['id']) : 'No ID'
);

View File

@@ -1,3 +1,3 @@
Product ID;Active(0/1);Name;Hotel ID;Pre-Tax Retail Price;Pre-Tax Operating Cost;Tax Rule ID;Allow Advance Payment;Room Type Advance Payement (0/1/2);Advance Payment Value;Include Tax With Advance Payment;Minimum Lenght Of Stay;Maximum Lenght Of Stay;Base Adults;Base Children;Maximum Adults;Maximum Children;Maximmum Guest;Show At Front;Additional Facilities IDs;Service Products IDs (x, y, z...);Feature IDs (x, y, z...);Short Description;Description;Meta Title;Meta Keywords;Meta Description;URL Rewritten;Image URLs (x,y,z...);Delete Existing Images (0 = No, 1 = Yes)
ID;Active(0/1);Name;Hotel ID;Pre-Tax Retail Price;Pre-Tax Operating Cost;Tax Rule ID;Allow Advance Payment;Room Type Advance Payement (0/1/2);Advance Payment Value;Include Tax With Advance Payment;Minimum Lenght Of Stay;Maximum Lenght Of Stay;Base Adults;Base Children;Maximum Adults;Maximum Children;Maximmum Guest;Show At Front;Additional Facilities IDs;Service Products IDs (x, y, z...);Feature IDs (x, y, z...);Short Description;Description;Meta Title;Meta Keywords;Meta Description;URL Rewritten;Image URLs (x,y,z...);Delete Existing Images (0 = No, 1 = Yes)
6;1;The Sunshine Luxury;1;2200;0;1;1;1;10;0;1;0;2;0;2;2;4;1;1;12;1,2,3,4;The Sunshine Luxury;The Sunshine Luxury;;;;the-sunshine-luxury;http://localhost/hotelcommerce/img/p/4/4.jpg;0
10;1;King Premium Rooms;1;3200;0;1;;0;;;2;7;2;0;2;2;4;1;;;1,2,3,4;King Premium Rooms;King Premium Rooms;;;;king-premium-rooms;http://localhost/hotelcommerce/img/p/3/3.jpg;0
1 Product ID ID Active(0/1) Name Hotel ID Pre-Tax Retail Price Pre-Tax Operating Cost Tax Rule ID Allow Advance Payment Room Type Advance Payement (0/1/2) Advance Payment Value Include Tax With Advance Payment Minimum Lenght Of Stay Maximum Lenght Of Stay Base Adults Base Children Maximum Adults Maximum Children Maximmum Guest Show At Front Additional Facilities IDs Service Products IDs (x, y, z...) Feature IDs (x, y, z...) Short Description Description Meta Title Meta Keywords Meta Description URL Rewritten Image URLs (x,y,z...) Delete Existing Images (0 = No, 1 = Yes)
2 6 6 1 The Sunshine Luxury 1 2200 0 1 1 1 10 0 1 0 2 0 2 2 4 1 1 12 1,2,3,4 The Sunshine Luxury The Sunshine Luxury the-sunshine-luxury http://localhost/hotelcommerce/img/p/4/4.jpg 0
3 10 10 1 King Premium Rooms 1 3200 0 1 0 2 7 2 0 2 2 4 1 1,2,3,4 King Premium Rooms King Premium Rooms king-premium-rooms http://localhost/hotelcommerce/img/p/3/3.jpg 0

View File

@@ -1,3 +1,3 @@
Room No;Floor;Product ID;Room Status (1 = Active, 2 = Inactive, 3 = Temporarily Inactive);Extra Information;Disabled Dates And Reason Incase Of Temporary Inactive
Room No;Floor;Room Type ID;Room Status (1 = Active, 2 = Inactive, 3 = Temporarily Inactive);Extra Information;Disabled Dates And Reason Incase Of Temporary Inactive
GR-109;First;1;3;Newly added room;2024-01-01:2024-01-02:Reason1, 2023-02-03:2023-02-02:Reason2
DR-107;First;2;1;;
1 Room No Floor Product ID Room Type ID Room Status (1 = Active, 2 = Inactive, 3 = Temporarily Inactive) Extra Information Disabled Dates And Reason Incase Of Temporary Inactive
2 GR-109 First 1 1 3 Newly added room 2024-01-01:2024-01-02:Reason1, 2023-02-03:2023-02-02:Reason2
3 DR-107 First 2 2 1