public function orderActionCreate($order) { $cart = new shopCart(); $code = $cart->getCode(); $m = new shopCartsreportPluginCartModel(); $m->deleteById($code); }
public function execute() { /** * @todo */ $on_page = 25; $start = microtime(true); $model = new shopCartsreportPluginCartModel(); $where = $this->getTimeQuery(); $page = waRequest::get('page', 1, waRequest::TYPE_INT); if ($page < 1) { $page = 1; } $offset = ($page - 1) * $on_page; $data = $model->getReportData($where, $offset, $on_page); $pages_total = ceil($data['total'] / $on_page); $path = $this->getConfig()->getPluginPath('carts') . '/lib/config/plugin.php'; $carts_plugin = file_exists($path); $this->view->assign(array('data' => $data, 'pages_total' => $pages_total, 'carts_plugin' => $carts_plugin, 'generated' => microtime(true) - $start, 'lang' => substr(wa()->getLocale(), 0, 2))); }