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

relow

Newbie
  
  • Posts

    9
  • Joined

  • Last visited

About relow

  • Birthday 02/24/2001

Information

  • Gender
    Не определился
  • City:
    Volgograd
  • Interests
    Web Design, Doka 2

Recent Profile Visitors

444 profile views

relow's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Мне нужно отобразить на главной странице самые часто просматриваемые товары. В админке это и так отображается, так что можно, наверное, множно скопировать модуль latest, и заменить там сортировку с 'sort' => 'p.date_added' на тот, который будет сортировать по просмотрам, но я не знаю как это сделать.
  2. Есть какой-то плагин с таким функционалом? Желательно бесплатный, из бесплатных я нашёл newsblog. Там есть количество просмотров, но лайки и комменты оставлять нельзя. Может принцип тот же, что и с товарами, и тогда можно скопировать это из товаров?
  3. ocStore 2.3.0.2.3 Для выведения категории в модуле с товарами я написал в контроллере: $categories = $this->model_catalog_product->getCategories($result['product_id']); if ($categories) { $categories_info = $this->model_catalog_category->getCategory($categories[0]['category_id']); } $data['products'][] = array( 'product_id' => $result['product_id'], 'product_cat' => $categories_info['name'] ?? null, 'thumb' => $image, 'name' => $result['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'category' => $this->model_catalog_product->getCategories($result['product_id']), 'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']) ); И в шаблоне: <?php if ($product['product_cat']): ?> <span class="category"><?php echo $product['product_cat']; ?></span> <?php endif ?> Выводится категория, которая идёт первая по названию, а мне нужно чтобы выводилась главная. В файле admin\view\template\catalog\product_form.tpl главная категория записывается в main_category_id, но добавление main не помогает
  4. Я туда смотрел. Не нашёл никаких других шаблонов.
  5. Шаблон checkout/cart.tpl применяется только когда корзина не пуста. А где найти шаблон пустой корзины?
  6. Я полностью очистил содержимое файла view/theme/name/template/checkout/cart.tpl, но переходя по ссылке я вижу стандартную корзину. Обновление кеша в модификаторах не помогает. Изменение шаблона в стандартной теме не помогает. Версия 2.3.0.2
  7. Я полностью очистил содержимое файла view/theme/name/template/checkout/cart.tpl, но переходя по ссылке я вижу стандартную корзину. Обновление кеша в модификаторах не помогает. Изменение шаблона в стандартной теме не помогает.
Guest
×
  • 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.