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

Demolution

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

Demolution's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Благодарю, то что нужно. Только столкнулся еще с одной проблемой. Установлен FilterPro, он заменяет весь контент при выводе на свой. Описание у него берется отдельно $description = function_exists('utf8_substr') ? utf8_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..' : substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..'; Подскажите как вытянуть атрибуты в самом контроллере FilterPro. Пробовал по разному, но не получается. Вот один из вариантов. Что не так? $attribute_groups_1 = $this->model_catalog_product->getProductAttributes($result['product_id']); foreach ($attribute_groups_1 as $attribute_group_1) { foreach ($attribute_group_1['attribute'] as $attribute_1) { $description .= $attribute_1['text'] . ' <font color="#00A7C7">/</font>'; } }
  2. Здравствуйте. Подскажите как вывести значения атрибутов ($attribute['text']) в description товаров, на странице категории. Пытался вывести таким способом <?php foreach ($attribute_groups as $attribute_group) { ?> <?php } ?> <?php foreach ($attribute_group['attribute'] as $attribute) { ?> <?php echo $attribute['text']; ?> <?php } ?> но получаю ошибки <b>Notice</b>: Undefined variable: attribute_groups in <b>/catalog/view/theme/default/template/product/category.tpl</b> on line <b>96</b> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/catalog/view/theme/default/template/product/category.tpl</b> on line <b>96</b> <b>Notice</b>: Undefined variable: attribute_group in <b>/catalog/view/theme/default/template/product/category.tpl</b> on line <b>98</b> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/catalog/view/theme/default/template/product/category.tpl</b> on line <b>98</b> Как же все таки вытянуть значения атрибутов на страницу категории.
×
×
  • 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.