-
Posts
158 -
Joined
-
Last visited
Content Type
Profiles
Forums
Marketplace
Articles
FAQ
Our New
Store
Blogs
module__dplus_manager
Everything posted by Yano4ka
-
а это Павла файлик! Попробую из архива модуля поменять
-
Простите слезно за тупость, я поняла, что из-за эквайринга, а какой файл исправлять нужно? :(
-
извините, не поняла какой именно файл. вот файл из кэша: <?php class ControllerAccountOrder extends Controller { private $error = array(); public function index() { if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/order', '', 'SSL'); $this->redirect($this->url->link('account/login', '', 'SSL')); } $this->language->load('account/order'); $this->load->model('account/order'); if (isset($this->request->get['order_id'])) { $order_info = $this->model_account_order->getOrder($this->request->get['order_id']); if ($order_info) { $order_products = $this->model_account_order->getOrderProducts($this->request->get['order_id']); foreach ($order_products as $order_product) { $option_data = array(); $order_options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $order_product['order_product_id']); foreach ($order_options as $order_option) { if ($order_option['type'] == 'select' || $order_option['type'] == 'radio') { $option_data[$order_option['product_option_id']] = $order_option['product_option_value_id']; } elseif ($order_option['type'] == 'checkbox') { $option_data[$order_option['product_option_id']][] = $order_option['product_option_value_id']; } elseif ($order_option['type'] == 'text' || $order_option['type'] == 'textarea' || $order_option['type'] == 'date' || $order_option['type'] == 'datetime' || $order_option['type'] == 'time') { $option_data[$order_option['product_option_id']] = $order_option['value']; } elseif ($order_option['type'] == 'file') { $option_data[$order_option['product_option_id']] = $this->encryption->encrypt($order_option['value']); } } $this->session->data['success'] = sprintf($this->language->get('text_success'), $this->request->get['order_id']); $this->cart->add($order_product['product_id'], $order_product['quantity'], $option_data); } $this->redirect($this->url->link('checkout/cart')); } } $this->document->setTitle($this->language->get('heading_title')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $url = ''; if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_order_id'] = $this->language->get('text_order_id'); $this->data['text_status'] = $this->language->get('text_status'); $this->data['text_date_added'] = $this->language->get('text_date_added'); $this->data['text_customer'] = $this->language->get('text_customer'); $this->data['text_products'] = $this->language->get('text_products'); $this->data['text_products_count'] = $this->language->get('text_products_count'); $this->data['text_total'] = $this->language->get('text_total'); $this->data['text_empty'] = $this->language->get('text_empty'); $this->data['button_view'] = $this->language->get('button_view'); $this->data['button_reorder'] = $this->language->get('button_reorder'); $this->data['button_continue'] = $this->language->get('button_continue'); if (isset($this->request->get['page'])) { $page = $this->request->get['page']; } else { $page = 1; } $this->data['orders'] = array(); $order_total = $this->model_account_order->getTotalOrders(); $results = $this->model_account_order->getOrders(($page - 1) * 10, 10); foreach ($results as $result) { $product_total = $this->model_account_order->getTotalOrderProductsByOrderId($result['order_id']); $voucher_total = $this->model_account_order->getTotalOrderVouchersByOrderId($result['order_id']); $product_count = $this->model_account_order->getTotalOrderProductsCountByOrderId($result['order_id']); $this->data['orders'][] = array( 'payment_code' => $result['payment_code'], 'order_id' => $result['order_id'], 'name' => $result['lastname'] . ' ' . $result['firstname'] , 'status' => $result['status'], 'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])), 'payment_code' => $result['payment_code'], 'products' => ($product_total + $voucher_total), 'products_count' => ($product_count + $voucher_total), 'total' => $this->currency->format($result['total'], $result['currency_code'], $result['currency_value']), 'href' => $this->url->link('account/order/info', 'order_id=' . $result['order_id'], 'SSL'), 'reorder' => $this->url->link('account/order', 'order_id=' . $result['order_id'], 'SSL') ); } $pagination = new Pagination(); $pagination->total = $order_total; $pagination->page = $page; $pagination->limit = 10; $pagination->text = $this->language->get('text_pagination'); $pagination->url = $this->url->link('account/order', 'page={page}', 'SSL'); $this->data['pagination'] = $pagination->render(); $this->data['continue'] = $this->url->link('account/account', '', 'SSL'); $this->load->model('account/sbacquiring'); $sb_codes = $this->model_account_sbacquiring->getPayMethods(); $data['sb'] = $sb_codes; foreach ($sb_codes as $sbcode){ if ($this->config->get($sbcode.'_status')){ $this->language->load('payment/'.$sbcode); $data['pay_text_lichkab'] = $this->language->get('pay_text_lichkab'); $sb_on_status = $this->config->get($sbcode.'_on_status_id'); $data['sb_status'] = $this->model_account_sbacquiring->getOrderStatus($sb_on_status); $data['sb_style'] = $this->config->get($sbcode.'_style'); } } { $this->template = $this->config->get('config_template') . '/template/account/order_list.tpl'; } else { $this->template = 'default/template/account/order_list.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } public function info() { $this->language->load('account/order'); if (isset($this->request->get['order_id'])) { $order_id = $this->request->get['order_id']; } else { $order_id = 0; } if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL'); $this->redirect($this->url->link('account/login', '', 'SSL')); } $this->load->model('account/order'); $order_info = $this->model_account_order->getOrder($order_id); if ($order_info) { $this->document->setTitle($this->language->get('text_order')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $url = ''; if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_order'), 'href' => $this->url->link('account/order/info', 'order_id=' . $this->request->get['order_id'] . $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $this->language->get('text_order'); $this->data['text_order_detail'] = $this->language->get('text_order_detail'); $this->data['text_pickpoint'] = $this->language->get('text_pickpoint'); $this->load->model('payment/pickpoint2'); $this->data['text_pickpoint_order_id'] = $this->model_payment_pickpoint2->getPickPointOrder($this->request->get['order_id']); $this->data['pickpoint_shop_id'] = $this->config->get('pickpoint_shop_id'); $this->data['text_invoice_no'] = $this->language->get('text_invoice_no'); $this->data['text_order_id'] = $this->language->get('text_order_id'); $this->data['text_date_added'] = $this->language->get('text_date_added'); $this->data['text_shipping_method'] = $this->language->get('text_shipping_method'); $this->data['text_shipping_address'] = $this->language->get('text_shipping_address'); $this->data['text_payment_method'] = $this->language->get('text_payment_method'); $this->data['text_payment_address'] = $this->language->get('text_payment_address'); $this->data['text_history'] = $this->language->get('text_history'); $this->data['text_comment'] = $this->language->get('text_comment'); $this->data['column_name'] = $this->language->get('column_name'); $this->data['column_model'] = $this->language->get('column_model'); $this->data['column_quantity'] = $this->language->get('column_quantity'); $this->data['column_price'] = $this->language->get('column_price'); $this->data['column_total'] = $this->language->get('column_total'); $this->data['column_action'] = $this->language->get('column_action'); $this->data['column_date_added'] = $this->language->get('column_date_added'); $this->data['column_status'] = $this->language->get('column_status'); $this->data['column_comment'] = $this->language->get('column_comment'); $this->data['button_return'] = $this->language->get('button_return'); $this->data['button_continue'] = $this->language->get('button_continue'); if ($order_info['invoice_no']) { $this->data['invoice_no'] = $order_info['invoice_prefix'] . $order_info['invoice_no']; } else { $this->data['invoice_no'] = ''; } $this->data['order_id'] = $this->request->get['order_id']; $this->data['date_added'] = date($this->language->get('date_format_short'), strtotime($order_info['date_added'])); if ($order_info['payment_address_format']) { $format = $order_info['payment_address_format']; } else { $format = ' {lastname} {firstname} ' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}'; } $find = array( '{firstname}', '{lastname}', '{company}', '{address_1}', '{address_2}', '{city}', '{postcode}', '{zone}', '{zone_code}', '{country}' ); $replace = array( 'firstname' => $order_info['payment_firstname'], 'lastname' => $order_info['payment_lastname'], 'company' => $order_info['payment_company'], 'address_1' => $order_info['payment_address_1'], 'address_2' => $order_info['payment_address_2'], 'city' => $order_info['payment_city'], 'postcode' => $order_info['payment_postcode'], 'zone' => $order_info['payment_zone'], 'zone_code' => $order_info['payment_zone_code'], 'country' => $order_info['payment_country'] ); $this->data['payment_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format)))); $this->data['payment_method'] = $order_info['payment_method']; if ($order_info['shipping_address_format']) { $format = $order_info['shipping_address_format']; } else { $format = ' {lastname} {firstname} ' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}'; } $find = array( '{firstname}', '{lastname}', '{company}', '{address_1}', '{address_2}', '{city}', '{postcode}', '{zone}', '{zone_code}', '{country}' ); $replace = array( 'firstname' => $order_info['shipping_firstname'], 'lastname' => $order_info['shipping_lastname'], 'company' => $order_info['shipping_company'], 'address_1' => $order_info['shipping_address_1'], 'address_2' => $order_info['shipping_address_2'], 'city' => $order_info['shipping_city'], 'postcode' => $order_info['shipping_postcode'], 'zone' => $order_info['shipping_zone'], 'zone_code' => $order_info['shipping_zone_code'], 'country' => $order_info['shipping_country'] ); $this->data['shipping_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format)))); $this->data['shipping_method'] = $order_info['shipping_method']; $this->data['products'] = array(); $products = $this->model_account_order->getOrderProducts($this->request->get['order_id']); foreach ($products as $product) { $option_data = array(); $options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $product['order_product_id']); foreach ($options as $option) { if ($option['type'] != 'file') { $value = $option['value']; } else { $value = utf8_substr($option['value'], 0, utf8_strrpos($option['value'], '.')); } $option_data[] = array( 'name' => $option['name'], 'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value) ); } $this->data['products'][] = array( 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']), 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), 'return' => $this->url->link('account/return/insert', 'order_id=' . $order_info['order_id'] . '&product_id=' . $product['product_id'], 'SSL') ); } // Voucher $this->data['vouchers'] = array(); $vouchers = $this->model_account_order->getOrderVouchers($this->request->get['order_id']); foreach ($vouchers as $voucher) { $this->data['vouchers'][] = array( 'description' => $voucher['description'], 'amount' => $this->currency->format($voucher['amount'], $order_info['currency_code'], $order_info['currency_value']) ); } $this->data['totals'] = $this->model_account_order->getOrderTotals($this->request->get['order_id']); $this->data['comment'] = nl2br($order_info['comment']); $this->data['histories'] = array(); $results = $this->model_account_order->getOrderHistories($this->request->get['order_id']); foreach ($results as $result) { $this->data['histories'][] = array( 'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])), 'status' => $result['status'], 'comment' => nl2br($result['comment']) ); } $this->data['continue'] = $this->url->link('account/order', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_info.tpl')) { $this->template = $this->config->get('config_template') . '/template/account/order_info.tpl'; } else { $this->template = 'default/template/account/order_info.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } else { $this->document->setTitle($this->language->get('text_order')); $this->data['heading_title'] = $this->language->get('text_order'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_order'), 'href' => $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['continue'] = $this->url->link('account/order', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } } ?>
-
ну как же не тот, когда вот его путь: catalog/controller/account/order.php а на ошибку сами посмотрите: ссылка из письма клиенту: http://nanoprotech.moscow/index.php?route=account/order/info&order_id=78
-
вот он: <?php class ControllerAccountOrder extends Controller { private $error = array(); public function index() { if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/order', '', 'SSL'); $this->redirect($this->url->link('account/login', '', 'SSL')); } $this->language->load('account/order'); $this->load->model('account/order'); if (isset($this->request->get['order_id'])) { $order_info = $this->model_account_order->getOrder($this->request->get['order_id']); if ($order_info) { $order_products = $this->model_account_order->getOrderProducts($this->request->get['order_id']); foreach ($order_products as $order_product) { $option_data = array(); $order_options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $order_product['order_product_id']); foreach ($order_options as $order_option) { if ($order_option['type'] == 'select' || $order_option['type'] == 'radio') { $option_data[$order_option['product_option_id']] = $order_option['product_option_value_id']; } elseif ($order_option['type'] == 'checkbox') { $option_data[$order_option['product_option_id']][] = $order_option['product_option_value_id']; } elseif ($order_option['type'] == 'text' || $order_option['type'] == 'textarea' || $order_option['type'] == 'date' || $order_option['type'] == 'datetime' || $order_option['type'] == 'time') { $option_data[$order_option['product_option_id']] = $order_option['value']; } elseif ($order_option['type'] == 'file') { $option_data[$order_option['product_option_id']] = $this->encryption->encrypt($order_option['value']); } } $this->session->data['success'] = sprintf($this->language->get('text_success'), $this->request->get['order_id']); $this->cart->add($order_product['product_id'], $order_product['quantity'], $option_data); } $this->redirect($this->url->link('checkout/cart')); } } $this->document->setTitle($this->language->get('heading_title')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $url = ''; if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_order_id'] = $this->language->get('text_order_id'); $this->data['text_status'] = $this->language->get('text_status'); $this->data['text_date_added'] = $this->language->get('text_date_added'); $this->data['text_customer'] = $this->language->get('text_customer'); $this->data['text_products'] = $this->language->get('text_products'); $this->data['text_products_count'] = $this->language->get('text_products_count'); $this->data['text_total'] = $this->language->get('text_total'); $this->data['text_empty'] = $this->language->get('text_empty'); $this->data['button_view'] = $this->language->get('button_view'); $this->data['button_reorder'] = $this->language->get('button_reorder'); $this->data['button_continue'] = $this->language->get('button_continue'); if (isset($this->request->get['page'])) { $page = $this->request->get['page']; } else { $page = 1; } $this->data['orders'] = array(); $order_total = $this->model_account_order->getTotalOrders(); $results = $this->model_account_order->getOrders(($page - 1) * 10, 10); foreach ($results as $result) { $product_total = $this->model_account_order->getTotalOrderProductsByOrderId($result['order_id']); $voucher_total = $this->model_account_order->getTotalOrderVouchersByOrderId($result['order_id']); $product_count = $this->model_account_order->getTotalOrderProductsCountByOrderId($result['order_id']); $this->data['orders'][] = array( 'order_id' => $result['order_id'], 'name' => $result['firstname'] . ' ' . $result['lastname'], 'status' => $result['status'], 'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])), 'products' => ($product_total + $voucher_total), 'products_count' => ($product_count + $voucher_total), 'total' => $this->currency->format($result['total'], $result['currency_code'], $result['currency_value']), 'href' => $this->url->link('account/order/info', 'order_id=' . $result['order_id'], 'SSL'), 'reorder' => $this->url->link('account/order', 'order_id=' . $result['order_id'], 'SSL') ); } $pagination = new Pagination(); $pagination->total = $order_total; $pagination->page = $page; $pagination->limit = 10; $pagination->text = $this->language->get('text_pagination'); $pagination->url = $this->url->link('account/order', 'page={page}', 'SSL'); $this->data['pagination'] = $pagination->render(); $this->data['continue'] = $this->url->link('account/account', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_list.tpl')) { $this->template = $this->config->get('config_template') . '/template/account/order_list.tpl'; } else { $this->template = 'default/template/account/order_list.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } public function info() { $this->language->load('account/order'); if (isset($this->request->get['order_id'])) { $order_id = $this->request->get['order_id']; } else { $order_id = 0; } if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL'); $this->redirect($this->url->link('account/login', '', 'SSL')); } $this->load->model('account/order'); $order_info = $this->model_account_order->getOrder($order_id); if ($order_info) { $this->document->setTitle($this->language->get('text_order')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $url = ''; if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_order'), 'href' => $this->url->link('account/order/info', 'order_id=' . $this->request->get['order_id'] . $url, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $this->language->get('text_order'); $this->data['text_order_detail'] = $this->language->get('text_order_detail'); $this->data['text_invoice_no'] = $this->language->get('text_invoice_no'); $this->data['text_order_id'] = $this->language->get('text_order_id'); $this->data['text_date_added'] = $this->language->get('text_date_added'); $this->data['text_shipping_method'] = $this->language->get('text_shipping_method'); $this->data['text_shipping_address'] = $this->language->get('text_shipping_address'); $this->data['text_payment_method'] = $this->language->get('text_payment_method'); $this->data['text_payment_address'] = $this->language->get('text_payment_address'); $this->data['text_history'] = $this->language->get('text_history'); $this->data['text_comment'] = $this->language->get('text_comment'); $this->data['column_name'] = $this->language->get('column_name'); $this->data['column_model'] = $this->language->get('column_model'); $this->data['column_quantity'] = $this->language->get('column_quantity'); $this->data['column_price'] = $this->language->get('column_price'); $this->data['column_total'] = $this->language->get('column_total'); $this->data['column_action'] = $this->language->get('column_action'); $this->data['column_date_added'] = $this->language->get('column_date_added'); $this->data['column_status'] = $this->language->get('column_status'); $this->data['column_comment'] = $this->language->get('column_comment'); $this->data['button_return'] = $this->language->get('button_return'); $this->data['button_continue'] = $this->language->get('button_continue'); if ($order_info['invoice_no']) { $this->data['invoice_no'] = $order_info['invoice_prefix'] . $order_info['invoice_no']; } else { $this->data['invoice_no'] = ''; } $this->data['order_id'] = $this->request->get['order_id']; $this->data['date_added'] = date($this->language->get('date_format_short'), strtotime($order_info['date_added'])); if ($order_info['payment_address_format']) { $format = $order_info['payment_address_format']; } else { $format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}'; } $find = array( '{firstname}', '{lastname}', '{company}', '{address_1}', '{address_2}', '{city}', '{postcode}', '{zone}', '{zone_code}', '{country}' ); $replace = array( 'firstname' => $order_info['payment_firstname'], 'lastname' => $order_info['payment_lastname'], 'company' => $order_info['payment_company'], 'address_1' => $order_info['payment_address_1'], 'address_2' => $order_info['payment_address_2'], 'city' => $order_info['payment_city'], 'postcode' => $order_info['payment_postcode'], 'zone' => $order_info['payment_zone'], 'zone_code' => $order_info['payment_zone_code'], 'country' => $order_info['payment_country'] ); $this->data['payment_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format)))); $this->data['payment_method'] = $order_info['payment_method']; if ($order_info['shipping_address_format']) { $format = $order_info['shipping_address_format']; } else { $format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}'; } $find = array( '{firstname}', '{lastname}', '{company}', '{address_1}', '{address_2}', '{city}', '{postcode}', '{zone}', '{zone_code}', '{country}' ); $replace = array( 'firstname' => $order_info['shipping_firstname'], 'lastname' => $order_info['shipping_lastname'], 'company' => $order_info['shipping_company'], 'address_1' => $order_info['shipping_address_1'], 'address_2' => $order_info['shipping_address_2'], 'city' => $order_info['shipping_city'], 'postcode' => $order_info['shipping_postcode'], 'zone' => $order_info['shipping_zone'], 'zone_code' => $order_info['shipping_zone_code'], 'country' => $order_info['shipping_country'] ); $this->data['shipping_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format)))); $this->data['shipping_method'] = $order_info['shipping_method']; $this->data['products'] = array(); $products = $this->model_account_order->getOrderProducts($this->request->get['order_id']); foreach ($products as $product) { $option_data = array(); $options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $product['order_product_id']); foreach ($options as $option) { if ($option['type'] != 'file') { $value = $option['value']; } else { $value = utf8_substr($option['value'], 0, utf8_strrpos($option['value'], '.')); } $option_data[] = array( 'name' => $option['name'], 'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value) ); } $this->data['products'][] = array( 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']), 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), 'return' => $this->url->link('account/return/insert', 'order_id=' . $order_info['order_id'] . '&product_id=' . $product['product_id'], 'SSL') ); } // Voucher $this->data['vouchers'] = array(); $vouchers = $this->model_account_order->getOrderVouchers($this->request->get['order_id']); foreach ($vouchers as $voucher) { $this->data['vouchers'][] = array( 'description' => $voucher['description'], 'amount' => $this->currency->format($voucher['amount'], $order_info['currency_code'], $order_info['currency_value']) ); } $this->data['totals'] = $this->model_account_order->getOrderTotals($this->request->get['order_id']); $this->data['comment'] = nl2br($order_info['comment']); $this->data['histories'] = array(); $results = $this->model_account_order->getOrderHistories($this->request->get['order_id']); foreach ($results as $result) { $this->data['histories'][] = array( 'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])), 'status' => $result['status'], 'comment' => nl2br($result['comment']) ); } $this->data['continue'] = $this->url->link('account/order', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_info.tpl')) { $this->template = $this->config->get('config_template') . '/template/account/order_info.tpl'; } else { $this->template = 'default/template/account/order_info.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } else { $this->document->setTitle($this->language->get('text_order')); $this->data['heading_title'] = $this->language->get('text_order'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('account/order', '', 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_order'), 'href' => $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL'), 'separator' => $this->language->get('text_separator') ); $this->data['continue'] = $this->url->link('account/order', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } } ?>
-
Вот лог за сегодняшний день: nanoprotech.moscow [Thu Aug 27 12:10:43 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/index.php?route=checkout/success nanoprotech.moscow [Thu Aug 27 12:10:43 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/favicon.ico, referer: https://nanoprotech.moscow/index.php?route=account/order/info&order_id=78 nanoprotech.moscow [Thu Aug 27 12:10:56 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/index.php?route=checkout/success nanoprotech.moscow [Thu Aug 27 12:12:59 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/index.php?route=checkout/success nanoprotech.moscow [Thu Aug 27 12:17:41 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/index.php?route=checkout/success nanoprotech.moscow [Thu Aug 27 12:17:44 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/index.php?route=checkout/success nanoprotech.moscow [Thu Aug 27 12:18:36 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/admin/view/javascript/jquery/colorbox/images, referer: http://nanoprotech.moscow/admin/view/javascript/jquery/colorbox/colorbox.css nanoprotech.moscow [Thu Aug 27 12:18:36 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/admin/view/javascript/jquery/colorbox/images, referer: http://nanoprotech.moscow/admin/view/javascript/jquery/colorbox/colorbox.css nanoprotech.moscow [Thu Aug 27 13:25:27 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/admin/view/image/load.gif, referer: http://nanoprotech.moscow/admin/ nanoprotech.moscow [Thu Aug 27 14:01:57 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/my-account nanoprotech.moscow [Thu Aug 27 14:02:03 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/my-account nanoprotech.moscow [Thu Aug 27 14:02:19 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 14:02:37 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 14:02:41 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 14:05:41 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/admin/view/javascript/jquery/colorbox/images, referer: http://nanoprotech.moscow/admin/view/javascript/jquery/colorbox/colorbox.css nanoprotech.moscow [Thu Aug 27 14:05:41 201] [error] [client 46.254.217.110] File does not exist: /home/srv62793/nanoprotech.moscow/admin/view/javascript/jquery/colorbox/images, referer: http://nanoprotech.moscow/admin/view/javascript/jquery/colorbox/colorbox.css nanoprotech.moscow [Thu Aug 27 14:11:18 201] [error] [client 217.76.32.145] File does not exist: /home/srv62793/nanoprotech.moscow/favicon.ico, referer: http://nanoprotech.moscow/admin/ nanoprotech.moscow [Thu Aug 27 14:14:21 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 14:19:35 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/my-account nanoprotech.moscow [Thu Aug 27 14:21:03 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist nanoprotech.moscow [Thu Aug 27 14:24:32 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:28:25 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:28:44 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:28:47 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:28:53 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:29:05 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:30:48 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:30:54 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:33:42 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:33:48 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:34:24 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/login nanoprotech.moscow [Thu Aug 27 14:35:40 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/index.php?route=account/login nanoprotech.moscow [Thu Aug 27 14:35:43 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/index.php?route=account/login nanoprotech.moscow [Thu Aug 27 14:35:49 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:38:56 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/index.php?route=account/account nanoprotech.moscow [Thu Aug 27 14:39:33 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/index.php?route=account/address nanoprotech.moscow [Thu Aug 27 14:41:25 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 14:42:48 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:43:35 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:43:36 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:43:38 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:43:39 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:43:51 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:45:01 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/transactions nanoprotech.moscow [Thu Aug 27 14:45:21 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:53:38 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:53:46 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:55:56 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:55:59 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:55:59 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:57:55 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:57:57 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:57:57 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:57:58 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 14:58:38 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:05:16 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:05:18 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:05:20 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:05:21 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:07:04 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:07:08 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:07:23 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 nanoprotech.moscow [Thu Aug 27 15:07:50 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist nanoprotech.moscow [Thu Aug 27 15:22:00 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist nanoprotech.moscow [Thu Aug 27 15:22:54 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist nanoprotech.moscow [Thu Aug 27 15:37:08 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist nanoprotech.moscow [Thu Aug 27 15:55:53 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 15:56:05 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: https://nanoprotech.moscow/address-book nanoprotech.moscow [Thu Aug 27 15:57:08 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160
-
добавила строки показывать ошибки и при обращении к истории заказа получаю на экране: Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 и при обращении из письма по ссылке то же самое: Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160 160 строка из этого файла выше. Что не так?
-
на сервере в логах много ошибок, но все ведут к 160 строке: nanoprotech.moscow [Thu Aug 27 15:07:50 201] [error] [client 46.254.217.110] PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 160, referer: http://nanoprotech.moscow/wishlist $this->session->data['redirect'] = $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL');
-
Спасибо! Буду звонить им.
-
2015-08-27 14:44:56 - PHP Notice: Undefined variable: product_name in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 6 2015-08-27 14:44:56 - PHP Notice: Undefined variable: product_url in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 7 2015-08-27 14:44:56 - PHP Notice: Undefined variable: product_thumb in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 8 а там: <meta property="og:title" content="<?php echo $product_name; ?>" /> <meta property="og:url" content="<?php echo $product_url; ?>" /> <meta property="og:image" content="<?php echo $product_thumb; ?>" /> и 2015-08-27 13:43:16 - PHP Notice: Undefined variable: filter_category in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-admin_view_template_catalog_product_list.tpl on line 39 там: <td class="left" style="max-width: 200px;"><?php if ($sort == 'pd.name') { ?> <a href="<?php echo $sort_name; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_name; ?></a> <?php } else { ?> <a href="<?php echo $sort_name; ?>"><?php echo $column_name; ?></a> <?php } ?></td>
-
OcStore 1.5.5.1.2 При нажатии на ссылку "История заказов" возникает белый экран. Из письма заказчика "Для просмотра Вашего заказа перейдите по ссылке:" тоже возникает белый экран. В чем может быть причина? SSL включала/выключала - не помогло, ЧПУ - тоже самое. Помогите, пожалуйста!
-
Какую платежку выбрать?
Yano4ka replied to solvisk's topic in Интернет-магазины и электронная коммерция
а мы поставили Яндекс.Деньги и эквайринг Сбербанка. Сбер никаких требований к времени существования ИП не предъявлял. -
Добрый день! Посоветуйте, пожалуйста, модуль для OcStore 1.5.5.1.2, где заходя в карточку товара или в категорию, появляется совет или вопрос-ответ. Не нашла за счет чего реализовать. Есть модуль Советы, но он не меняющийся, просто привязывается для отображения в категории или в продукте.
-
ну не факт..Сбер по цене больше уступает, чем Яндекс, зато у Яндекса специалисты не равнодушные, с готовностью помогают в настройке модуля для эквайринга. А вот Сбер... что хочешь, то и делай, не заинтересованы в поступлении денег, видимо.
-
а эквайринг Сбербанка и Яндекс.Кассу для физ и юр.лиц можно включить по умолчанию из соображений, что Интернет-магазин все-таки должен как-то осуществлять продажу?
-
Добрый день! Нужна настройка ЧПУ на сайте для того что бы работал эквайринг и делал коллбэк. На данный момент ЧПУ работает не корректно. Включаю его только при необходимости разместить товар в контакте. Объявляю конкурс на качественное и бюджетное исполнение. На счет конкурса - шутка. На счет остального нет. Кто сможет помочь? Доступ могу предоставить по ftp, также в админку магазина, в phpadmin не смогу (нет технического пароля), при необходимости работы в нем могу быть вашими глазами и руками. С уважением, Яна
-
Модуль Экспорт/Импорт больших XLS-файлов [Поддержка]
Yano4ka replied to vsuvorov's topic in Модули обмена данными
СУПЕР!!! Отлично, заработало!!!! :-) Спасибо!!! -
Модуль Экспорт/Импорт больших XLS-файлов [Поддержка]
Yano4ka replied to vsuvorov's topic in Модули обмена данными
Добрый день всем! Кто может подсказать в чем проблема? Экспортирует хорошо, но импортирует без проблем тот файл, который только что скачен. Если файл открыть и просто нажать "сохранить", даже не внося никакие изменения, то вылетает такая ошибка: ОШИБКА! Что-то пошло не так... Текст ошибки: Импортировано: 1 строк<b>Fatal Error</b>: Call to undefined function libxml_disable_entity_loader() in <b>/home/ivanteevka/nanoprotech.moscow/docs/system/PHPExcel/Classes/PHPExcel/Settings.php</b> on line <b>369</b> -
поэтому все содержимое таблицы не вмещается на экран. Подскажите, где и как поправить? Спасибо!
-
СПАСИБО ОГРОМНОЕ!!! там немного другие значения, но спасибо за подсказку, где именно копать!!!!! P.S.: если можно, выскажите, пожалуйста, предположение, почему при установке одних и тех же файлов, на один и тот же сервер...в общем все тоже самое,... но поля раньше создавались сами, а сейчас не создаются?
-
Скажите, как отредактировать свое сообщение в соответствии с Вашими рекомендациями?
-
Помогите, пожалуйста, разобраться с ошибкой. Ситуация такая: Есть хороший модуль "напоминалка для менеджеров". Когда я его ставила раньше, то все работало. Поставила сейчас все тоже самое, движок OcStore 1.5.5.1.2, тот же vqmod, тот же хостинг, тот же модуль... но когда я его загружаю теперь в папку xml, то вылетает админка, выдавая ошибку: Из-за чего это может быть? Как это вылечить, кроме удаления файла? скрипт модуля: <?xml version="1.0" encoding="UTF-8"?> <modification> <id>to do reminder</id> <version>1.0</version> <vqmver>2.0</vqmver> <author>Dj+MLK18102014</author> <file name="admin/view/template/sale/order_list.tpl"> <operation> <search position="after" offset="1"><![CDATA[ <a href="<?php echo $sort_status; ?>"><?php echo $column_status; ?></a> ]]></search> <add><![CDATA[ <td class="left">Напомнить</br>на EMAIL</td> ]]></add> </operation> <operation> <search position="before"><![CDATA[ <td align="right"><input type="text" name="filter_total" value="<?php echo $filter_total; ?>" size="4" style="text-align: right;" /></td> ]]></search> <add><![CDATA[ <td align="right"></td> ]]></add> </operation> <operation> <search position="after"><![CDATA[ <td class="left"><?php echo $order['status']; ?></td> ]]></search> <add><![CDATA[ <td class="left"> <input class="datetime" type="text" id='action_date_<?php echo $order['order_id']; ?>' size="15" value="<?php echo $order['action_date']; ?>" contenteditable="true" onChange="$('#action_checkbox_<?php echo $order['order_id']; ?>').prop('checked', true); saveNote2(<?php echo $order['order_id']; ?>);" /> <input type="checkbox" id='action_checkbox_<?php echo $order['order_id']; ?>' contenteditable="true" style="cursor:pointer;" onChange="saveNote2(<?php echo $order['order_id']; ?>);" <?php if ($order['action_checkbox']==1) echo 'checked="checked"'; ?> /> <br / > <input id='action_note_<?php echo $order['order_id']; ?>' type="text" size="20" value="<?php echo $order['action_note']; ?>" contenteditable="true" onBlur="saveNote2(<?php echo $order['order_id']; ?>);" /> </td> ]]></add> </operation> <operation> <search position="after"><![CDATA[ $('.date').datepicker({dateFormat: 'yy-mm-dd'}); ]]></search> <add><![CDATA[ $('.datetime').datepicker({dateFormat: 'yy-mm-dd 00:00:00'}); ]]></add> </operation> <operation info="Adding ajax query to update notes"> <search position="before"><![CDATA[ <?php echo $footer; ?> ]]></search> <add><![CDATA[ <script type="text/javascript"><!-- function saveNote2(orderId) { var action_date = $('#action_date_' + orderId).val(); var action_checkbox = $('#action_checkbox_' + orderId).prop('checked'); if (action_checkbox==true) action_checkbox=1; else action_checkbox=0; var action_note = $('#action_note_' + orderId).val(); $.ajax({ url: 'index.php?route=sale/order/saveNotes2&token=<?php echo $token; ?>', type: 'post', data: '&order_id=' + orderId + '&action_date=' + action_date + '&action_checkbox=' + action_checkbox + '&action_note=' + action_note, dataType: 'json', success: function(json) { // $('.success, .warning, .attention, .information, .error').remove(); if (json['success']) { // alert(json['success']); } } }); } //--></script> ]]></add> </operation> </file> <file name="admin/controller/sale/order.php"> <operation> <search position="after"><![CDATA[ public function index() { ]]></search> <add trim="true"><![CDATA[ $query = $this->db->query("DESC `".DB_PREFIX."order` action_date"); if (!$query->num_rows) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "order` ADD `action_date` TIMESTAMP default 0"); } $query = $this->db->query("DESC `".DB_PREFIX."order` action_note"); if (!$query->num_rows) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "order` ADD `action_note` varchar(255) default ''"); } $query = $this->db->query("DESC `".DB_PREFIX."order` action_checkbox"); if (!$query->num_rows) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "order` ADD `action_checkbox` int(2) default 0"); } ]]></add> </operation> <operation> <search position="after" index="1"><![CDATA[ 'order_id' => $result['order_id'], ]]></search> <add><![CDATA[ 'action_date' => $result['action_date'], 'action_note' => $result['action_note'], 'action_checkbox' => $result['action_checkbox'], ]]></add> </operation> <operation> <search position="before"><![CDATA[ function invoice() ]]></search> <add><![CDATA[ public function saveNotes2() { $json = array(); $order_id = null; $action_date = null; $action_note = ""; $action_checkbox = ""; $note_3 = ""; $note_4 = ""; if (isset($this->request->post['order_id'])) { $order_id = $this->request->post['order_id']; } else { $order_id = null; } if (isset($this->request->post['action_date'])) { $action_date = $this->request->post['action_date']; } else { $action_date = null; } if (isset($this->request->post['action_note'])) { $action_note = $this->request->post['action_note']; } else { $action_note = ""; } if (isset($this->request->post['action_checkbox'])) { $action_checkbox = $this->request->post['action_checkbox']; } else { $action_checkbox = ""; } $this->load->model('sale/order'); $this->model_sale_order->updateNotes2($order_id, $action_date, $action_note, $action_checkbox); if (!$json) { $json['success'] = sprintf($order_id); } else { $json['redirect'] = "bad"; } $this->response->setOutput(json_encode($json)); } ]]></add> </operation> </file> <file name="admin/model/sale/order.php"> <operation> <search position="replace"><![CDATA[SELECT o.order_id,]]></search> <add><![CDATA[SELECT o.order_id,action_date, action_note, action_checkbox,]]> </add> </operation> <operation> <search position="before"><![CDATA[ function addOrder( ]]></search> <add><![CDATA[ public function updateNotes2($order_id, $action_date, $action_note, $action_checkbox) { if($action_date) $timestamp = mysql_real_escape_string($action_date); else $timestamp = mysql_real_escape_string(Date()); $this->db->query("UPDATE `" . DB_PREFIX . "order` SET action_date = '" . $timestamp . "', action_note = '" . $action_note . "', action_checkbox = '" . $action_checkbox . "' WHERE order_id = '" . (int) $order_id . "'"); } ]]> </add> </operation> </file> <file name="catalog/controller/checkout/checkout.php"> <operation> <search position="before"><![CDATA[ public function country() { ]]></search> <add><![CDATA[ public function cron_order() { $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "order` o WHERE o.action_date<NOW() AND o.action_checkbox=1"); foreach ($query->rows as $row) { $text = $this->config->get('config_name').' № Заказа: '.$row['order_id'].' Комментарий: '.$row['action_note']; $mail = new Mail(); $mail->protocol = $this->config->get('config_mail_protocol'); $mail->parameter = $this->config->get('config_mail_parameter'); $mail->hostname = $this->config->get('config_smtp_host'); $mail->username = $this->config->get('config_smtp_username'); $mail->password = $this->config->get('config_smtp_password'); $mail->port = $this->config->get('config_smtp_port'); $mail->timeout = $this->config->get('config_smtp_timeout'); $mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setSender($this->config->get('config_name')); $mail->setSubject(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); $mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); $mail->send(); $query_check = $this->db->query("UPDATE `" . DB_PREFIX . "order` o SET o.action_checkbox=0 WHERE o.order_id='". $row['order_id'] ."'"); } } ]]> </add> </operation> </file> </modification>
-
[Решено?..] Как добавить вес на странице товара?
Yano4ka replied to vipkovaleva's topic in Песочница
а как теперь его в счет админки и в корзину запихать... ?