Update and new files for karenderia mobileapp version 2 modules (1.5.2)

Modules

New files

  1. components/DriverWrapper.php
  2. components/GraphicalTracking.php
  3. views/index/firebase_otp.php
  4. views/index/graphical_tracking.php
  5. views/index/paypal_buy.php

Updated files

  1. assets/css/app.css
  2. assets/js/app.js
  3. components/CheckoutWrapperTemp.php
  4. components/DatataseMigration.php
  5. components/EuroTax.php
  6. components/itemWrapper.php
  7. components/MapsWrapperTemp.php
  8. components/mobileWrapper.php
  9. controllers/AjaxController.php
  10. controllers/ApiController.php
  11. controllers/CronController.php
  12. controllers/IndexController.php
  13. controllers/PaypalController.php
  14. controllers/UpdateController.php
  15. translation-file/mobile2.php
  16. views/index/banner_add.php
  17. views/index/banner_list.php
  18. views/index/broadcast_list.php
  19. views/index/broadcast_old_list.php
  20. views/index/device_list.php
  21. views/index/order_trigger.php
  22. views/index/page_list.php
  23. views/index/push_list.php
  24. views/index/rating_app.php
  25. views/index/settings_analytics.php
  26. views/index/settings_application.php
  27. Mobileappv2Module.php

Mobile app files

New files

  1. package_android.json
  2. package_ios.json

Updated files

  1. www/css/app.css
  2. www/js/app.js
  3. www/js/template.js
  4. www/index.html
  5. config.xml
  6. package.json

Database update

  1. change mobile2_push_logs push_message to text
  2. new table = mobile2_homebanner_translation
  3. new field in table mobile2_homebanner = actions,page_id,custom_url
  4. new table = merchantapp_task_location

Update KMRS with new merchant settings

  1. Update the file views/merchant/settings.php with this click here to get the code
  2. open the file components/ajaxadmin.php
    after these line
    
    Yii::app()->functions->updateOption("website_merchant_time_picker_interval",
    isset($this->data['website_merchant_time_picker_interval'])?$this->data['website_merchant_time_picker_interval']:''
    ,$merchant_id);  
    
    
    add this
    
    Yii::app()->functions->updateOption("tracking_estimation_delivery1",
    isset($this->data['tracking_estimation_delivery1'])?(integer)$this->data['tracking_estimation_delivery1']:0
    ,$merchant_id);  
    
    Yii::app()->functions->updateOption("tracking_estimation_delivery2",
    isset($this->data['tracking_estimation_delivery2'])?(integer)$this->data['tracking_estimation_delivery2']:0
    ,$merchant_id);  
    
    Yii::app()->functions->updateOption("tracking_estimation_pickup1",
    isset($this->data['tracking_estimation_pickup1'])?(integer)$this->data['tracking_estimation_pickup1']:0
    ,$merchant_id);  
    
    Yii::app()->functions->updateOption("tracking_estimation_pickup2",
    isset($this->data['tracking_estimation_pickup2'])?(integer)$this->data['tracking_estimation_pickup2']:0
    ,$merchant_id);  
    
    Yii::app()->functions->updateOption("tracking_estimation_dinein1",
    isset($this->data['tracking_estimation_dinein1'])?(integer)$this->data['tracking_estimation_dinein1']:0
    ,$merchant_id);  
    
    Yii::app()->functions->updateOption("tracking_estimation_dinein2",
    isset($this->data['tracking_estimation_dinein2'])?(integer)$this->data['tracking_estimation_dinein2']:0
    ,$merchant_id);  
    

Update merchant app v2 api

  1. open the file merchantappv2/controllers/ApiController.php
    look for function actionOrderDetails()
    before the line
    
    $this->code = 1; $this->msg = "OK";
    
    add this
    
    Yii::app()->db->createCommand()->update("{{order}}",array(
    	'merchantapp_viewed'=>1,
    	'viewed'=>1
    ),
    'order_id=:order_id',
        array(
          ':order_id'=>$order_id
        )
    );