Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

Yano4ka

Пользователи
  
  • Публикаций

    158
  • Зарегистрирован

  • Посещение

Все публикации пользователя Yano4ka

  1. Yano4ka

    css checkout

    Спасибо. Как уменьшить, знаю, а вот где, не нашла.
  2. Yano4ka

    css checkout

    При наличии товара в корзине и оформлении заказа на этой странице: https://nanoprotech.moscow/checkout Шаг 4 Способ доставки
  3. Yano4ka

    css checkout

    Подскажите, пожалуйста, где в css можно зафиксировать размер правой колонки, когда выпадающее меню доходит до доставки? У меня цена записывается в 3 строки, потому что описание доставки в центровой колонке длинное. В итоге получается доставка большого веса отображается как: 1 203 р. Единичку впереди клиент может не рассмотреть, а это нехорошо. А я уже css методом тыка поперепробовала задавать ширину и не нашла. Подскажите, пожалуйста, название строки, где ширину можно задать. У меня обычная default схема с пошаговым введением информации. OcStore 1.5.5.1.2 Заранее благодарна за помощь.
  4. вот есть у меня в library в cart.php вот такая запись: // Product Specials if ($discount_quantity<10) { $product_special_query = $this->db->query("SELECT price FROM " . DB_PREFIX . "product_special WHERE product_id = '" . (int)$product_id . "' AND customer_group_id = '" . (int)$customer_group_id . "' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end = '0000-00-00' OR date_end > NOW())) ORDER BY priority ASC, price ASC LIMIT 1"); if ($product_special_query->num_rows) { $price = $product_special_query->row['price']; } } может здесь как-то нужно приоритет заменить?
  5. а как же тогда акцию сделать распространить на оптовые цены, указанные в "скидки"?
  6. Добрый день! Подскажите, пожалуйста, из-за чего проблема, если выставить одновременно акцию, то есть поставить снижение цены, с приоритетом 2 и скидки от объема с приоритетом 1. считает все равно только по акционной цене? OcStore 1.5.5.1.2 схема default Спасибо.
  7. Кэш сбросила. Все равно глючит. С модулем вместе эта запись не работает, да и без модуля не верно считает. В корзине отображает только стоимость ОПЦИИ, хотя при просмотре самой корзины показывает полную сумму. Тут похоже где-то еще надо было править.
  8. Спасибо большое, близко, но у меня проблема как clarkufa Хотела попробовать Ваше решение, но на этой строке выдает ошибку. ?>Notice: Undefined variable: cart in /.../vqmod/vqcache/vq2-system_library_cart.php on line 238 А с предложенным модулем вообще конфликтует. Модуль тот убрала. А в строке может опечатка какая? Копировала отсюда.
  9. Еще вопрос, как можно сделать в опциях количество отличное от количества товара? К примеру заказываем монтаж минимально на 8 м2, (с этим понятно цена за 1 м2 и минимальное количество товара/услуги 8), а вот к нему полагается выезд монтажника, на каждые 48 м2 - 1 выезд., то есть если клиент заказал монтаж 50 м2, то у него 2 выезда. А я когда ставлю опцию выезд монтажника 1 штука, он мне сразу 8 считает, по количеству заказанных услуг. Можно ли это как -то настроить? Или та же проблема с пленками, заказывают 10 штук, а термостат нужен 1, и он обязателен к покупке, поэтому в отдельную карточку вывести не подойдет.
  10. Доброго дня всем! Подскажите, пожалуйста, есть ли решение на какой-либо версии OpenCerta или OcStore (в идеале для OcStore версии 1.5.5.1.2 на которой стоит магазин) для назначения минимальной суммы заказа для группы товаров. Суть в чем. В магазине есть пленки разной длинны, но одной ширины. Шаг между ними в 0,5 метра. Клиенту может быть нужна пленка разной длинны, поэтому, если ставить ограничение по минимальному количеству на каждый товар, то это будет завышенным требованием к покупателю, а мне нужно, что бы он взял этой пленки не менее 7,65 м2. Ограничить суммой магазин тоже не могу, так как есть другой товар. Как такое можно решить? Может это как-то за счет 1 карточки товара с опциями как-то настроить можно, подскажите, пожалуйста, кто знает?
  11. файл нашла, а с редактированием что-то не получчилось: <div id="menu"> <ul> <?php foreach ($categories as $category) { ?> <li><?php if ($category['active']) { ?> <a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a> <?php } else { ?> <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a> <?php } ?> <li><a href="http://ссылка.ru/">название ссылки</a></li> и у меня эта ссылка появляется через каждое название категорий, т.е. категоия 1 затем ссылка, категория 2 и снова ссылка, а нужно только в 1м месте меню. Как исправить?
  12. Добрый день! Не нашла на форуме, как вставить ссылку произвольную в меню OcStore 1.5.5.1.2. Подскажите, пожалуйста, в каком файле ее можно прописать. у меня есть модуль html блок, но он выводит ссылку не в самом меню, а под ним. Спасибо!
  13. вот так всегда... через забор надо было перепрыгнуть, прежде, чем дошло, как калитку открыть.. ))) в статьях надо было редактор на источник переключить, а там код этот и лежал! :) вопрос снят.
  14. нашла, как теоретически могла сделать, на сайте гугла, но... единственное место, где отображался ID виджета находился в базе данных в поле description. Если оттуда убрать, то вроде не отображается виджет на странице, но... зная свой пользовательский уровень, точно не поставила бы так какую-либо "фенечку" на сайт. было засунуто в поле description таблицы `oc_information_description`: </p> <div class="g-page" data-href="//plus.google.com/u/0/110578143537062342290" data-rel="publisher"> &nbsp;</div> а так должно было быть (взято здесь: https://developers.google.com/+/web/badge/): <!-- Вставьте этот тег в заголовке страницы или непосредственно перед закрывающим тегом основной части. --> <script src="https://apis.google.com/js/platform.js" async defer> {lang: 'ru'} </script> <!-- Поместите этот тег туда, где должна отображаться виджет. --> <div class="g-page" data-href="//plus.google.com/u/0/110578143537062342290" data-rel="publisher"></div> Кто знает, какой модуль реально был залит и настроен, что бы отображался этот виджет (ну не могла я его через базу так ставить) :( ?
  15. Люди добрые, подскажите, пожалуйста, как убрать со страницы "о нас" информацию из google+? Устанавливала давно, как делала, не помню, в установленных модулях не нахожу. http://nanoprotech.moscow/about_us.html На странице квадратик с google+ нужно убрать.
  16. Всем огромное спасибо за участие и помощь! Проблема ликвидирована!
  17. путем долгих мучений найдено 2 файла, один install.xml (код выше), другой error-fix.xml <?xml version="1.0" encoding="UTF-8"?> <modification> <id>errorfix</id> <version>1.0.0</version> <vqmver>2.0.0</vqmver> <author>[email protected]</author> <file name="catalog/controller/account/order.php"> <operation> <search position="before"> <![CDATA[ if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_list.tpl')) ]]> </search> <add> <![CDATA[ if (){ ]]> </add> </operation> </file> </modification> Вопрос простой, без этих файлов магазин сможет работать?
  18. install.xml <?xml version="1.0" encoding="UTF-8"?> <modification> <name>SBAcquiring</name> <code>sbacquiring</code> <version>1.0.0</version> <author>ARTandPR studio</author> <link>http://store.pe-art.ru</link> <file path="catalog/controller/account/order.php"> <operation> <search> <![CDATA[ 'products' => ($product_total + $voucher_total), ]]> </search> <add position="replace"> <![CDATA[ 'payment_code' => $result['payment_code'], 'products' => ($product_total + $voucher_total), ]]> </add> </operation> </file> <file path="catalog/model/account/order.php"> <operation> <search> <![CDATA[ $query = $this->db->query("SELECT o.order_id, o.firstname, o.lastname, os.name as status, o.date_added, o.total, o.currency_code, o.currency_value FROM `" . DB_PREFIX . "order` o LEFT JOIN " . DB_PREFIX . "order_status os ON (o.order_status_id = os.order_status_id) WHERE o.customer_id = '" . (int)$this->customer->getId() . "' AND o.order_status_id > '0' AND o.store_id = '" . (int)$this->config->get('config_store_id') . "' AND os.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY o.order_id DESC LIMIT " . (int)$start . "," . (int)$limit); ]]> </search> <add position="replace"> <![CDATA[ $query = $query = $this->db->query("SELECT o.order_id, o.firstname, o.lastname, os.name as status, o.payment_code, o.date_added, o.total, o.currency_code, o.currency_value FROM `" . DB_PREFIX . "order` o LEFT JOIN " . DB_PREFIX . "order_status os ON (o.order_status_id = os.order_status_id) WHERE o.customer_id = '" . (int)$this->customer->getId() . "' AND o.order_status_id > '0' AND o.store_id = '" . (int)$this->config->get('config_store_id') . "' AND os.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY o.order_id DESC LIMIT " . (int)$start . "," . (int)$limit); ]]> </add> </operation> </file> <file path="catalog/view/theme/*/template/account/order_list.tpl"> <operation> <search> <![CDATA[ <td class="text-right"><a href="<?php echo $order['href']; ?>" data-toggle="tooltip" title="<?php echo $button_view; ?>" class="btn btn-info"><i class="fa fa-eye"></i></a></td> ]]> </search> <add position="replace"> <![CDATA[ <td class="text-right"> <div class="pull-right"><a href="<?php echo $order['href']; ?>" data-toggle="tooltip" title="<?php echo $button_view; ?>" class="btn btn-info"><i class="fa fa-eye"></i></a></td></div> ]]> </add> </operation> <operation> <search index="6"> <![CDATA[ <td class="text-right"> ]]> </search> <add position="after"> <![CDATA[ <div class="pull-left"> <?php foreach ($sb as $sbcode){ if($sb_style) { $sb_style = 'btn btn-info'; } else { $sb_style = 'sb_button'; } $order_id = $order['order_id']; if ($order['status'] == $sb_status['name'] && $order['payment_code'] == $sbcode){ print "<div class='sbpay'><a class='$sb_style' href='index.php?route=account/sbacquiring&order_id=$order_id'>". $pay_text_lichkab. "</a></div>"; } } ?> </div> ]]> </add> </operation> </file> <file path="catalog/controller/account/order.php"> <operation> <search> <![CDATA[ if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_list.tpl')) ]]> </search> <add position="before"> <![CDATA[ $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'); } } ]]> </add> </operation> </file> <file path="admin/controller/common/menu.php"> <operation> <search><![CDATA[$data['text_zone']]]></search> <add position="before"><![CDATA[ $data['text_sbacquiring'] = $this->language->get('text_sbacquiring');]]></add> </operation> <operation> <search><![CDATA[$data['zone']]]></search> <add position="before"><![CDATA[ $data['sbacquiring'] = $this->url->link('payment/sbacquiring/status', 'token=' . $this->session->data['token'], 'SSL'); ]]></add> </operation> </file> <file path="admin/language/*/common/menu.php"> <operation> <search><![CDATA[$_['text_zone'] ]]></search> <add position="before"><![CDATA[$_['text_sbacquiring'] = 'SBAcquiring';]]></add> </operation> </file> <file path="admin/view/template/common/menu.tpl"> <operation> <search><![CDATA[<li><a class="parent"><?php echo $text_paypal ?></a>]]></search> <add position="before"><![CDATA[ <li><a href="<?php echo $sbacquiring; ?>"><?php echo $text_sbacquiring; ?></a></li>]]></add> </operation> </file> <file path="admin/controller/sale/order.php"> <operation> <search> <![CDATA[ $this->response->setOutput($this->load->view('sale/order_info.tpl', $data)); ]]> </search> <add position="before"> <![CDATA[ $data['sbacquiring_link'] = $order_info['store_url'] . 'index.php?route=account/sbacquiring' . '&order_id=' . $order_info['order_id']; $this->load->model('payment/sbacquiring'); $sb_codes = $this->model_payment_sbacquiring->getPayMethods(); $data['sb'] = $sb_codes; foreach ($sb_codes as $sbcode){ if ($order_info['payment_code'] == $sbcode) { $data['sbacquiring_code'] = $order_info['payment_code']; $this->language->load('payment/'.$sbcode); $data['pay_text_admin'] = $this->language->get('pay_text_admin'); } } ]]> </add> </operation> </file> <file path="admin/view/template/sale/order_info.tpl"> <operation> <search offset="1"> <![CDATA[ <div id="history"></div> ]]> </search> <add position="after"> <![CDATA[ <?php if (isset($sbacquiring_code)) { ?> <tr> <td><?php echo $pay_text_admin; ?></td> <td><?php echo $sbacquiring_link; ?></td> </tr> <?php } ?> ]]> </add> </operation> </file> </modification>
  19. снова удалила все, оставила vqmod_opencart.xml и install.xml почистила vqcache и на ссылку http://nanoprotech.moscow/index.php?route=account/order/info&order_id=78 получила ошибку: Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 153 других xml в папке нет а если install.xml удалить, то снова все работает
  20. вернула файл обратно, теперь показывает ошибку: Parse error: syntax error, unexpected ')' in /home/srv62793/nanoprotech.moscow/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 145 :cry: <?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'); if (){ $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()); } } } ?>
  21. это единственный файл, при удалении которого показываются страницы...
  22. <?xml version="1.0" encoding="UTF-8"?> <modification> <id>VQMOD CORE FOR OPENCART - DO NOT REMOVE</id> <version>1.4.x and above</version> <vqmver required="true">2.5.0</vqmver> <author>vqmod.com</author> <file name="system/startup.php,system/engine/*.php,system/library/*.php,admin/controller/extension/*.php"> <operation error="skip" info="For non OCMod includes/requires"> <search position="replace" regex="true"><![CDATA[~(require|include)(_once)?\((?!modification\()([^)]+)~]]></search> <add><![CDATA[$1$2(VQMod::modCheck($3)]]></add> </operation> <operation error="skip" info="For OCMod includes/requires - OPERATION MUST BE AFTER NON OCMOD INCLUDES/REQUIRES OPERATION"> <search position="replace" regex="true"><![CDATA[~(require|include)(_once)?\(modification\(([^)]+)~]]></search> <add><![CDATA[$1$2(VQMod::modCheck(modification($3), $3]]></add> </operation> </file> </modification> Вот этот файл виноват: vqmod_opencart.xml
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.