Quick update data instructions after you use the latest file https://youtu.be/FSW3sdeD4CM

Update and new files for karenderia 5.4.5

Note for those who want to update make sure you make a backup of your file protected/config/main.php this section

	'db'=>array(	        
		    'class'            => 'CDbConnection' ,
			'connectionString' => 'mysql:host=localhost;dbname=kmrs',
			'emulatePrepare'   => true,
			'username'         => 'root',
			'password'         => '',
			'charset'          => 'utf8',
			'tablePrefix'      => 'mt_',
	    ),			

After you replace your main.php make sure you copy this back to your main.php this is the settings that holds your database connection.

Updated files

  1. assets/css/admin.css
  2. assets/js/admin.js
  3. assets/js/store-v3.js
  4. assets/js/store.js
  5. assets/vendor/select2 - new library
  6. components/DiscountPromo.php - new file
  7. components/Ajax.php
  8. components/AjaxAdmin.php
  9. components/Functions.php
  10. components/FunctionsV3.php
  11. components/Item_migration.php
  12. components/Item_utility.php
  13. components/ItemClass.php
  14. components/NotificationWrapper.php
  15. components/ScriptManager.php
  16. config/table_structure.php
  17. controllers/AjaxadminController.php
  18. controllers/AjaxController.php
  19. controllers/AjaxmerchantController.php
  20. controllers/StoreController.php
  21. controllers/UpdateController.php
  22. models/reg-change-phone.php - new file
  23. views/admin/settings-new.php
  24. views/admin/voucher-add.php
  25. views/layouts/admin_tpl.php
  26. views/layouts/merchant_tpl.php
  27. views/merchant/food-item-add.php
  28. views/merchant/voucher-add.php
  29. views/store/contact.php
  30. views/store/email-verification.php
  31. views/store/mobile-verification.php

Database update

  1. new fields in table _item = delivery_options
  2. new fields in table _order = delivery_vehicle
  3. add delivery_vehicle in view_order
  4. change field met_id to varchar in table item_meta
  5. new fields in table _voucher_new = max_number_use, selected_customer