From 25158bc2c2d64119ece5d3841f4057354125fde4 Mon Sep 17 00:00:00 2001 From: Dmitry Akolzin Date: Fri, 7 Apr 2017 11:58:04 +0300 Subject: [PATCH] update: admin/controller/extension/module/retailcrm.php update: admin/view/template/extension/module/retailcrm.tpl update: system/cron/export.php --- admin/controller/extension/module/retailcrm.php | 6 ++++++ admin/view/template/extension/module/retailcrm.tpl | 4 +++- system/cron/export.php | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/admin/controller/extension/module/retailcrm.php b/admin/controller/extension/module/retailcrm.php index 47e9068..522ee68 100644 --- a/admin/controller/extension/module/retailcrm.php +++ b/admin/controller/extension/module/retailcrm.php @@ -242,6 +242,12 @@ class ControllerExtensionModuleRetailcrm extends Controller $_data['catalog'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG; $_data['token'] = $this->request->get['token']; + if(file_exists(DIR_SYSTEM . '/cron/export_done.txt')) { + $_data['export_file'] = false; + } else { + $_data['export_file'] = true; + } + $this->response->setOutput( $this->load->view('extension/module/retailcrm.tpl', $_data) ); diff --git a/admin/view/template/extension/module/retailcrm.tpl b/admin/view/template/extension/module/retailcrm.tpl index 754bbfc..bf57c3e 100644 --- a/admin/view/template/extension/module/retailcrm.tpl +++ b/admin/view/template/extension/module/retailcrm.tpl @@ -5,8 +5,10 @@