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

bodyak0

Users
  
  • Posts

    652
  • Joined

  • Last visited

Everything posted by bodyak0

  1. Можно спарсить все товары и сделать такой же обычный дизайн)
  2. Вот сайт если цена у него изменилась на сайте мне нужно чтобы и у меня она уменьшилась https://umga.ru/catalog/giroskutery_i_monokolesa/giroskutery_10_5_dyuymov/giroskuter_balance_plus_pro_premium_10_5_v1_autobalance_app_ogon_i_led/?r1=yandext&r2=&_openstat=bWFya2V0LnlhbmRleC5ydTtTbWFydCBCYWxhbmNlINCT0LjRgNC-0YHQutGD0YLQtdGAIEJhbGFuY2UgUGx1cyBQUk8gUFJFTUlVTSAxMC41IFYxICsgQXV0b2JhbGFuY2UgKyBBUFAgKNCe0LPQvtC90Ywg0Lgg0JvQtdC0KTtVLXo2UFhaR0RDblUzMHNtUG5Xdl93Ow&frommarket=&ymclid=15674088061343577873100001
  3. Всем привет, ищу модуль парсинга цен от маркета, к примеру имеются 5 конкурентов стоящие на маркете и у них есть магазины, так вот когда цена меняется на маркете то автоматически должна меняться в товаре к примеру минус -1 рубль, на кроне нужно использовать каждые пол часа для мониторинга. Кто то встречал подобное?
  4. Пишу уже второй раз, помогите вывести изображения категорий на главной. Я просто в левом меню вывел в макетах категории в twig прописал <div class="cats4 w"> <div class="h2">Каталог</div> <ul> {% for category in categories %} <li> <div class="L"> <div class="image"><a href="{{ category.href }}"><img src="{{ category.thumb }}" class="img-responsive" />{{ category.name }}</a></div> </div> <div class="R"> <a href="{{ category.href }}"><b>{{ category.name }}</b></a> {% if category.children %} <ul> {% for child in category.children %} <li><a href="{{ child.href }}">{{ child.name }}</a></li> {% endfor %} </ul> {% endif %} </div> </li> {% endfor %} </ul></div> В контролере рылся не могу задать чтобы шел вывод /catalog/controller/extension/module/category.php Есть желающие сделать рублей за 400 эту задачу? Очень нужна ваша помощь!
  5. Не работает вывод фото, кто решил проблему помогите!
  6. спасибо информативно
  7. я не силен говорю же)просто подскажите может не хватает чего то в коде?
  8. Сделал так: /catalog/controller/extension/module/category.php <?php class ControllerExtensionModuleCategory extends Controller { public function index() { $this->load->language('extension/module/category'); $this->load->model('tool/image'); if (isset($this->request->get['path'])) { $parts = explode('_', (string)$this->request->get['path']); } else { $parts = array(); } if (isset($parts[0])) { $data['category_id'] = $parts[0]; } else { $data['category_id'] = 0; } if (isset($parts[1])) { $data['child_id'] = $parts[1]; } else { $data['child_id'] = 0; } $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { $children_data = array(); if ($category['category_id'] == $data['category_id']) { $children = $this->model_catalog_category->getCategories($category['category_id']); foreach($children as $child) { $filter_data = array('filter_category_id' => $child['category_id'], 'filter_sub_category' => true); $children_data[] = array( 'category_id' => $child['category_id'], 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } } $filter_data = array( 'filter_category_id' => $category['category_id'], 'filter_sub_category' => true ); if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height')); } else { $image = $this->model_tool_image->resize('placeholder.png', $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height')); } $data['categories'][] = array( 'category_id' => $category['category_id'], 'thumb' => $image, 'name' => $category['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'children' => $children_data, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } return $this->load->view('extension/module/category', $data); } } В файле /template/extension/module/category.twig <div class="cats4 w"> <div class="h2">Каталог</div> <ul> {% for category in categories %} <li> <div class="L"> <div class="image"> <a href="{{ category.href }}"><img src="{{ category.thumb }}" alt="{{ category.name }}"/></a> </div> </div> <div class="R"> <a href="{{ child.href }}"><b>{{ category.name }}</b></a> {% if category.children %} <ul> {% for child in category.children %} <li><a href="{{ child.href }}">{{ child.name }}</a></li> {% endfor %} </ul> {% endif %} </div> </li> {% endfor %} </ul></div> Фото вывелось но только то что его нет как бы.. Помогите решить чтобы фото было с основной категории уже не знаю что делать
  9. чет не выходит ничего, Undefined variable: image in фото не выводится только куча ошибок
  10. /catalog/controller/product/category.php этот?
  11. Всем привет, шаблон дефолный, сделал вывод категорий на главной странице в левом блоке, не могу вывести изображения самой категории с лева, в открытой категории есть фото вывожу рядом с названием категории блок с фото {{ category.thumb }} , но ничего не выходит может есть свежее какое то решение?Просто переменную фото не могу вытащить руки и знания не позволяют этого сделать.Помогите пожалуйста
  12. В разделе "каталог/статьи" Там заполняйте
  13. Реализовать подобное можно н Реализовать подобное можно на Ocfilter
  14. Сайт на друпале <meta name="Generator" content="Drupal 7 (http://drupal.org)" />
  15. Написал в ЛС, готов взяться реализовать все что изложено по ТЗ
  16. Спасибо)Чет внимание не обратил в начале
  17. Хоть убей не могу вывести модель в модуле {% if product.model %} {{ product.model }} {% endif %} в контролере прописал catalog/controller/extension/module/featured.php 'product_id' => $product_info['product_id'], 'thumb' => $image, 'location' => $result['location'], 'model' => $result['model'], 'sku' => $result['sku'], 'name' => $product_info['name'], и ничерта не работает, кеш чистил. Может что не так?
  18. Могу сделать, я раньше работал с платформой донора имеются навыки работы)
×
×
  • 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.