Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!defined('_PS_VERSION_'))
- exit;
- class Sfdsync extends Module
- {
- public function __construct()
- {
- $this->name = 'sfdsync';
- $this->tab = 'front_office_features';
- $this->version = '0.1';
- $this->author = 'Mateusz _matiit_ Tracz';
- parent::__construct();
- $this->displayName = $this->l('Moduł synchronizacji zamówień z SFD.pl');
- $this->description = $this->l('Wysyłanie informacji o zamówieniach.');
- $this->confirmUninstall = $this->l('Czy napewno odinstalować moduł?');
- $this->_checkContent();
- $this->context->smarty->assign('module_name', $this->name);
- }
- public function install()
- {
- if (!parent::install() ||
- !$this->registerHook('actionValidateOrder') ||
- !$this->_createContent())
- return false;
- return true;
- }
- public function uninstall()
- {
- if (!parent::uninstall() ||
- !$this->_deleteContent())
- return false;
- return true;
- }
- /**
- * Actually Module :)
- */
- public function hookActionValidateOrder($params)
- {
- ob_start();
- var_dump($params);
- $result = ob_get_clean();
- $logger = new FileLogger();
- $logger->setFilename(_PS_ROOT_DIR_.'/log/'.date('Ymd').'_exception.log');
- //$logger->logError($result);
- return "tet";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement