From a614aee387b739870df6449edfad928a4733e9a4 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 16 Jan 2024 15:38:29 +0530 Subject: [PATCH 01/11] Updated the adminimportcontroller to allow the admin to import rooms, room types, hotels, orders, etc. using the csv files. --- .../controllers/import/helpers/form/form.tpl | 135 +- controllers/admin/AdminImportController.php | 2769 +++++++++++------ docs/csv_import/alias_import.csv | 8 +- docs/csv_import/bookings_import.csv | 4 + docs/csv_import/categories_import.csv | 7 +- docs/csv_import/customers_import.csv | 20 +- docs/csv_import/hotels_import.csv | 3 + docs/csv_import/room_types_import.csv | 3 + docs/csv_import/rooms_import.csv | 3 + docs/csv_import/service_products_import.csv | 4 + 10 files changed, 1990 insertions(+), 966 deletions(-) create mode 100644 docs/csv_import/bookings_import.csv create mode 100644 docs/csv_import/hotels_import.csv create mode 100644 docs/csv_import/room_types_import.csv create mode 100644 docs/csv_import/rooms_import.csv create mode 100644 docs/csv_import/service_products_import.csv diff --git a/admin/themes/default/template/controllers/import/helpers/form/form.tpl b/admin/themes/default/template/controllers/import/helpers/form/form.tpl index 5bf19d342..f82dfa8cf 100644 --- a/admin/themes/default/template/controllers/import/helpers/form/form.tpl +++ b/admin/themes/default/template/controllers/import/helpers/form/form.tpl @@ -25,7 +25,7 @@
{block name="leadin"}{/block}
{if $module_confirmation}
- {l s='Your .CSV file has been successfully imported into your shop. Don\'t forget to re-build the products\' search index.'} + {l s='Your .CSV file has been successfully imported to your website.'}
{/if}
@@ -63,7 +63,12 @@
  • {l s='Note that the Category import does not support having two categories with the same name.'}
  • -
  • {l s='Note that you can have several products with the same reference.'}
  • +
+
+
+
    +
  • {l s='Note that the bookings import with active mail feature will make the import process very slow.'}
  • +
  • {l s='You can disable the mail feature from Advanced Parameters > E-mail'}
@@ -199,42 +204,40 @@
- +
-
{l s='e.g. '} 1; Blouse; 129.90; 5
+
{l s='e.g. '} 6; 1; The Sunshine Luxury
-
{l s='e.g. '} Blouse; red.jpg, blue.jpg, green.jpg; 129.90
+
{l s='e.g. '} The Sunshine Luxury; News Paper:2.jpg, Gym:7.jpg

- +
- +
- +
- + -->
- + -