annnn Posted March 6 Share Posted March 6 Под 2 oc есть мануал под 3 не найду, в контроллер добавил 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), в самом шаблоне twig не знаю как вывести нужные аттрибуты по id подскажите Link to comment Share on other sites More sharing options...
Blast Posted March 6 Share Posted March 6 06.03.2022 в 12:46, annnn сказал: Под 2 oc есть мануал под 3 не найду, в контроллер добавил 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), в самом шаблоне twig не знаю как вывести нужные аттрибуты по id подскажите 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 11:56, Blast сказал: Спасипотому что потому чтольшое Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 11:57, annnn сказал: Спасипотому что потому чтольшое теперьь другая проблема ругается на контроллер, при добавлении в featured.php 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), Notice: Undefined variable: result in C:\OpenServer\domains\gipsanit\catalog\controller\extension\module\featured.php on line 60Notice: Trying to access array offset on value of type null in Link to comment Share on other sites More sharing options... spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:08, annnn сказал: при добавлении в featured.php им product_info 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:21, spectre сказал: им product_info имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:48, annnn сказал: гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? обновить модификаторы и кэш шаблона Link to comment Share on other sites More sharing options... spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:34, annnn сказал: имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно посмотрите внимательнее Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:50, Blast сказал: обновить модификаторы и кэш шаблона да обновлял, ничего не выводит Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:54, annnn сказал: да обновлял, ничего не выводит {% for attribute_group in product.attribute_groups %} 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 3 Go to topic listing Similar Content Attribute Select - Атрибуты списком By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 0 comments 11,242 views sv2109 January 21, 2016 Атрибуты Pro By FreeWind, April 23, 2015 атрибуты атрибуты pro 0 comments 5,412 views FreeWind April 23, 2015 Объединение групп атрибутов, атрибутов и их значений By Stealth421, October 16, 2017 атрибуты группы атрибутов (and 1 more) Tagged with: атрибуты группы атрибутов обьединение 0 comments 6,248 views Stealth421 October 17, 2017 [Подгдержка] Attribute Select - Атрибуты списком 1 2 By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 37 replies 9,742 views DMac January 3 Атрибуты товаров в категории By Facebook, April 13, 2020 3 replies 446 views Point March 30 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Общие вопросы Twig Oc 3 атрибуты по id в списке Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 11:56, Blast сказал: Спасипотому что потому чтольшое Link to comment Share on other sites More sharing options...
annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 11:57, annnn сказал: Спасипотому что потому чтольшое теперьь другая проблема ругается на контроллер, при добавлении в featured.php 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), Notice: Undefined variable: result in C:\OpenServer\domains\gipsanit\catalog\controller\extension\module\featured.php on line 60Notice: Trying to access array offset on value of type null in Link to comment Share on other sites More sharing options...
spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:08, annnn сказал: при добавлении в featured.php им product_info 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:21, spectre сказал: им product_info имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:48, annnn сказал: гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? обновить модификаторы и кэш шаблона Link to comment Share on other sites More sharing options... spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:34, annnn сказал: имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно посмотрите внимательнее Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:50, Blast сказал: обновить модификаторы и кэш шаблона да обновлял, ничего не выводит Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:54, annnn сказал: да обновлял, ничего не выводит {% for attribute_group in product.attribute_groups %} 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 3 Go to topic listing Similar Content Attribute Select - Атрибуты списком By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 0 comments 11,242 views sv2109 January 21, 2016 Атрибуты Pro By FreeWind, April 23, 2015 атрибуты атрибуты pro 0 comments 5,412 views FreeWind April 23, 2015 Объединение групп атрибутов, атрибутов и их значений By Stealth421, October 16, 2017 атрибуты группы атрибутов (and 1 more) Tagged with: атрибуты группы атрибутов обьединение 0 comments 6,248 views Stealth421 October 17, 2017 [Подгдержка] Attribute Select - Атрибуты списком 1 2 By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 37 replies 9,742 views DMac January 3 Атрибуты товаров в категории By Facebook, April 13, 2020 3 replies 446 views Point March 30 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Общие вопросы Twig Oc 3 атрибуты по id в списке Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:21, spectre сказал: им product_info имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно Link to comment Share on other sites More sharing options...
annnn Posted March 6 Author Share Posted March 6 гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? Link to comment Share on other sites More sharing options...
Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:48, annnn сказал: гделаю ик 'attribute_groups' => $this->model_catalog_product->getProductAttributes($product_info['product_id']), {% for attribute_group in attribute_groups %} {% for attribute in attribute_group.attribute %} {% if attribute.attribute_id in [14, 2, 3, 4] %} <!-- тут id атрибутов --> <td>{{ attribute.name }}</td><!-- тут название атрибуи--> <td>{{ attribute.text }}</td><!-- тут текст/описание атрибуи --> {% endif %} {% endfor %} {% endfor %} ошибки нету, но аттрибуты не выводятся что не ик? обновить модификаторы и кэш шаблона Link to comment Share on other sites More sharing options... spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:34, annnn сказал: имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно посмотрите внимательнее Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:50, Blast сказал: обновить модификаторы и кэш шаблона да обновлял, ничего не выводит Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:54, annnn сказал: да обновлял, ничего не выводит {% for attribute_group in product.attribute_groups %} 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 3 Go to topic listing Similar Content Attribute Select - Атрибуты списком By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 0 comments 11,242 views sv2109 January 21, 2016 Атрибуты Pro By FreeWind, April 23, 2015 атрибуты атрибуты pro 0 comments 5,412 views FreeWind April 23, 2015 Объединение групп атрибутов, атрибутов и их значений By Stealth421, October 16, 2017 атрибуты группы атрибутов (and 1 more) Tagged with: атрибуты группы атрибутов обьединение 0 comments 6,248 views Stealth421 October 17, 2017 [Подгдержка] Attribute Select - Атрибуты списком 1 2 By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 37 replies 9,742 views DMac January 3 Атрибуты товаров в категории By Facebook, April 13, 2020 3 replies 446 views Point March 30 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Общие вопросы Twig Oc 3 атрибуты по id в списке
spectre Posted March 6 Share Posted March 6 В 06.03.2022 в 12:34, annnn сказал: имеете в виду згдесь ? ['product_id'] меняю на info безрезульитно посмотрите внимательнее Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:50, Blast сказал: обновить модификаторы и кэш шаблона да обновлял, ничего не выводит Link to comment Share on other sites More sharing options... Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:54, annnn сказал: да обновлял, ничего не выводит {% for attribute_group in product.attribute_groups %} 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 3 Go to topic listing Similar Content Attribute Select - Атрибуты списком By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 0 comments 11,242 views sv2109 January 21, 2016 Атрибуты Pro By FreeWind, April 23, 2015 атрибуты атрибуты pro 0 comments 5,412 views FreeWind April 23, 2015 Объединение групп атрибутов, атрибутов и их значений By Stealth421, October 16, 2017 атрибуты группы атрибутов (and 1 more) Tagged with: атрибуты группы атрибутов обьединение 0 comments 6,248 views Stealth421 October 17, 2017 [Подгдержка] Attribute Select - Атрибуты списком 1 2 By sv2109, January 21, 2016 атрибут атрибуты (and 2 more) Tagged with: атрибут атрибуты attribute фильтр 37 replies 9,742 views DMac January 3 Атрибуты товаров в категории By Facebook, April 13, 2020 3 replies 446 views Point March 30 Recently Browsing 0 members No registered users viewing this page.
annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:50, Blast сказал: обновить модификаторы и кэш шаблона да обновлял, ничего не выводит Link to comment Share on other sites More sharing options...
Blast Posted March 6 Share Posted March 6 06.03.2022 в 13:54, annnn сказал: да обновлял, ничего не выводит {% for attribute_group in product.attribute_groups %} 1 Link to comment Share on other sites More sharing options... annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 3
annnn Posted March 6 Author Share Posted March 6 06.03.2022 в 12:58, Blast сказал: {% for attribute_group in product.attribute_groups %} Спасипотому что. рилииет Link to comment Share on other sites More sharing options...
Recommended Posts