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

Yavis

Newbie
  
  • Posts

    5
  • Joined

  • Last visited

Yavis's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Подскажите пожалуйста, как получить главную картинку изображения?
  2. Подскажите пожалуйста почему при выводе изображения товара, в товарах где количество изображений больше одного выводятся нормально, а там где всего одно изображение, оно не выводится вовсе. <a href="{{ image['popup'] }}" data-caption="{{ heading_title }} {{ image['tkan_color'] }}" data-fancybox="images" class="thumbnail imglink gallery_img_main"> <img class="main-image" src="{{ image['thumb2'] }}" data-caption="{{ heading_title }} {{ image['tkan_color'] }}" alt="{{ heading_title }} {{ image['tkan_color'] }}" data-zoom-image="{{ image['popup'] }}" /> </a> Вот таким образом выводу изображения
  3. $data['products'][] = array( 'product_id' => $product_info['product_id'], 'thumb' => $image, 'name' => $product_info['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('theme_' . $this->config->get('config_theme') . '_product_description_length')) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'attribute' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), 'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']) ); Вот так выглядит сейчас featured.php, вызываю вот так {% if (not theme_aurus_description_cat) %} <div class="{% if (theme_aurus_description_catsm) %}desc_hide {% else %}desc_show {% endif %}"> <p>{{ product['description'] }}</p> </div> {% endif %} {% if (product['attribute'] and not theme_aurus_atr_cat) %} <div class="{% if (theme_aurus_atr_catsm) %}atr_hide {% else %}atr_show {% endif %}"> <div class="attribute_cat"> {% set v = 0 %} {% set break = false %} {% set break2 = false %} {% for attribute_group in product['attribute'] if not break %} {% for key,attribute in attribute_group['attribute'] if not break2 %} {% set v = v + 1 %} {% if (v + 1 > theme_aurus_limit_atr) %} {% set break2 = true %} {% endif %} <span> {% if (attribute['attribute_id'] == 27) %} <img src="/image/icons/gd_length.png" class="webfun_product_sizes_img" alt=""> {{ attribute['text'] }} {% elseif (attribute['attribute_id'] == 28) %} <img src="/image/icons/gd_width.png" class="webfun_product_sizes_img" alt=""> {{ attribute['text'] }} {% elseif (attribute['attribute_id'] == 37) %} <img src="/image/icons/gd_height.png" class="webfun_product_sizes_img" alt=""> {{ attribute['text'] }} {% endif %} </span> {% if (v < theme_aurus_limit_atr) %} {% endif %} {% endfor %} {% if (v + 1 > theme_aurus_limit_atr) %} {% set break = true %} {% endif %} {% endfor %} </div> </div> {% endif %} И по итогу вызывается только описание товара
  4. Это необходимо сделать в файле /catalog/controller/extension/module/featured.php ? Или /catalog/controller/product/category.php
  5. Добрый вечер, не получается получить атрибуты в шаблоне aridius Пробовал в /catalog/controller/extension/module/featured.php добавлять строку 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), Для стандартного вывода помогло когда так сделал в папке /catalog/controller/product/category.php, но в наиболее просматриваимые, новинки и акции не получается вывести атрибуты. Подскажите что я не так делаю. Заранее благодарен
×
×
  • 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.