Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Serj1992

Newbie
  
  • Posts

    46
  • Joined

  • Last visited

Everything posted by Serj1992

  1. Эмм... Можно более подробно: как проверить, что с чем сравнивать и что значит рекурсивно?
  2. В файле catalog/view/theme/default/stylesheet/stylesheet.css html { margin: 0; padding: 0; background: url('your_theme/image/image.jpg' ) - для картинки или background-color: #000000; - для цвета фона, где #000000 - цвет }
  3. на эти файлы права 777, а вот на system/library не ставится - их меняешь, а они не меняются.
  4. Ставлю на system/library права 777, а они не меняются. В чем дело?
  5. После замены файлов в папке admin (перезалил всю папку) появилась такая ошибка: Заходишь на сайт - все ок. Заходишь в админку - все ок. В админке в списке товаров кликаешь "просмотреть товар на сайте" - открывается сайт, а там... над шапкой: И на самом сайте: НО! Если нажать на любую ссылку на самом сайте - все опять как надо...
  6. <?php if ($webme_18yo_status && isset($this->request->get['path']) && $this->request->get['path'] == '73_81'){ ?> все-таки такой вариант оставил) тот, где "... == 73)..." начал закрывать категорию "прочее" Поправил на '73_81' - стало как надо)
  7. 2-ю проблему решил, убрав отступ справа от изображения в stylesheet.css (примерно 1311-1315 строки) Осталась только проблема с повторяющимся изображением... Есть не везде, почему-то только на некоторых товарах.
  8. Такая проблема: Установлена MaxyStore 1.5.5.1 В ней есть модули мультизагрузки изображений (с добавлением их "пачкой" в карточку товара), и какой-то (не знаю какой :oops: ) зум изображений. Проблема 1: Добавляю фото пачкой. в админке все ок. Заходишь в карточку товара - главное изображение дублируется и их становится 2-3 шт. (в админке по-прежнему 1) Проблема 2: Вместо зума поставил модуль iLightBox. Теперь появилась проблема с выводом изображений. Первое дополнительное фото в карточке товара выводится большим. (например тут: http://smartshop.96.lt/8-yadernyy-smartfon-gorilla-glass-1080p-fhd-mtk6592-8-core-android-422-3g-phone-otg-14mp-cam-1gb-ram-16gb-rom.html) Сайт: http://smartshop.96.lt Коды каких-либо файлов для помощи предоставлю, напишите только каких)
  9. Решение нашлось) неправильно переносил с vqmod'а
  10. Тьфу ты, режим отладки включен) При нем каждый раз при обновлении куки удаляются) Воть :oops:
  11. А если зайти первый раз, немного подождать - зайти второй раз? Оба раза выведется? (у меня так)
  12. Поменял на то, что подсказали, смотрите, что вышло: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ',' or ')' in /home/u574746132/public_html/vqmod/vqcache/vq2-catalog_view_theme_pav_plaza_template_common_footer.tpl on line 185
  13. УПС)) Поехали)) Как поправить?) Вот что там: <!-- End SiteHeart code --> <!-- OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation. Please donate via PayPal to [email protected] //--> </section> <?php if ($webme_18yo_status && $this->request->get['path'] == 73){ ?> <style type="text/css"> .ui-widget-overlay { opacity: .96; } </style> <div id="webme_18yo_modal_container"></div> <script> $(function() { $('#webme_18yo_modal_container').load('index.php?route=module/webme_18yo/modal'); }); </script> <?php } ?> </body></html>
  14. PS: не знаю, что было, но все заработало! :) Спасибо огромное всем тем, кто принимал участие!!! Особое (самое большое) спасибо chukcha Без вас прям не знаю, что делал бы! :) PPS: может кто-нибудь подскажет ссылочку, где быстро освоить хоть начальную стадию PHP?
  15. Так, вроде получилось с вариантом <?php if ($webme_18yo_status && $this->request->get['path'] == 73){ ?> Одна проблема осталась - сообщение выводится при ПОВТОРНОМ обновлении (не с первого раза)
  16. Вот что находится в catalog\controller\module\webme_18yo.php <?php class ControllerModuleWebme18YO extends Controller { public function index() { if ($this->config->get('webme_18yo_status')) { if ($this->config->get('webme_18yo_debug_mode') == 1) { // remove cookie while testing... setcookie('18yo_agree', "", time() - 10, '/'); } $agree = isset($this->request->cookie['18yo_agree']); if (isset($this->request->post['18yo_agree'])) { setcookie('18yo_agree', $this->request->post['18yo_agree'], time() + 3600 * 24 * $this->config->get('webme_18yo_cookie_days_lifetime'), '/'); // redirect to store homepage header('Location: '.HTTPS_SERVER.''); } if (!$agree) { $route = ''; if (isset($this->request->get['route'])) { $part = explode('/', $this->request->get['route']); if (isset($part[0])) { $route .= $part[0]; } } // Show site if logged in as admin $this->load->library('user'); $this->user = new User($this->registry); if (($route != 'payment') && !$this->user->isLogged()) { return $this->forward('module/webme_18yo/info'); } } } } public function info() { $this->load->language('module/webme_18yo'); $this->document->setTitle($this->language->get('heading_title')); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['action'] = HTTPS_SERVER."index.php?route=module/webme_18yo"; // form buttons $this->data['button_agree'] = $this->language->get('button_agree'); $this->data['button_disagree'] = $this->language->get('button_disagree'); $this->document->breadcrumbs = array(); $this->document->breadcrumbs[] = array( 'text' => $this->language->get('text_breadcrumbs'), 'href' => $this->url->link('module/webme_18yo'), 'separator' => false ); $this->data['message'] = nl2br($this->config->get('webme_18yo_agreement')); $this->data['disagreement_link'] = $this->config->get('webme_18yo_disagreement_link'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/webme_18yo.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/webme_18yo.tpl'; } else { $this->template = 'default/template/module/webme_18yo.tpl'; } $this->children = array( 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } public function modal() { $agree = isset($this->request->cookie['18yo_agree']); if ($this->config->get('webme_18yo_debug_mode') == 1) { // remove cookie while testing... setcookie('18yo_agree', "", time() - 10, '/'); } if (!$agree) { $this->load->language('module/webme_18yo'); $this->document->setTitle($this->language->get('heading_title')); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['webme_18yo_header'] = $this->language->get('heading_title'); $this->data['action'] = HTTPS_SERVER."index.php?route=module/webme_18yo/agree"; // form buttons $this->data['button_agree'] = $this->language->get('button_agree'); $this->data['button_disagree'] = $this->language->get('button_disagree'); $this->document->breadcrumbs = array(); $this->document->breadcrumbs[] = array( 'text' => $this->language->get('text_breadcrumbs'), 'href' => $this->url->link('module/webme_18yo'), 'separator' => false ); $this->data['message'] = nl2br($this->config->get('webme_18yo_agreement')); $this->data['disagreement_link'] = $this->config->get('webme_18yo_disagreement_link'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/webme_18yo_modal.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/webme_18yo_modal.tpl'; } else { $this->template = 'default/template/module/webme_18yo_modal.tpl'; } $this->response->setOutput($this->render()); } else { $output = ""; die(); } } public function agree() { $result = array(); if (isset($this->request->post['18yo_agree'])) { setcookie('18yo_agree', $this->request->post['18yo_agree'], time() + 3600 * 24 * $this->config->get('webme_18yo_cookie_days_lifetime'), '/'); $result['success'] = 1; } else { $this->load->language('module/webme_18yo'); $result['error'] = $this->language->get('text_agree_cookie_error'); } $this->response->setOutput(json_encode($result)); } } ?>
  17. $this-request->get[['path'] --- тут так должно быть? $this->request->get[['path']
  18. Ну да, хотя если зайти в саму категорию - 73_81. Все равно отображается везде...
  19. Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/u574746132/public_html/vqmod/vqcache/vq2-catalog_view_theme_pav_plaza_template_common_footer.tpl on line 185
  20. Т.е. я так понимаю, этим нужно заменить вот это: if ($webme_18yo_status || $_SERVER['REQUEST_URI']=='адрес категории') ? А вместо 73 мне нужно написать 73_81? (т.к. адрес категории: category&path=73_81) Или оставить как есть?
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.