REDDI Posted April 26, 2018 Share Posted April 26, 2018 Привет всем) Вывожу описание товара в корзине очень круто) добавил строку: 'description' => utf8_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..', получилось: $data['products'][] = array( 'cart_id' => $product['cart_id'], 'thumb' => $image, 'name' => $product['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..', 'option' => $option_data, 'recurring' => ($product['recurring'] ? $product['recurring']['name'] : ''), 'quantity' => $product['quantity'], 'price' => $price, 'total' => $total, 'href' => $this->url->link('product/product', 'product_id=' . $product['product_id']) ); но вылазиет ошибка: Notice: Undefined index: description in /home/u93316/site.ru/catalog/controller/common/cart.php on line 108Notice: Undefined index: description in /home/u93316/star.aikrym.ru/catalog/controller/common/cart.php on line 108 на всех страницах описание выводится как description. Подскажите, почему он бьет ошибку? Код брал с latest.php и заменил $result['description'] на $product['description'] . 1 Link to comment Share on other sites More sharing options...
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 http://prntscr.com/jabg7i 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Потому что его нет в массиве 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Только что, legioner26 сказал: Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. я вообще то добавил Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 $this->load->model('catalog/product'); foreach ($this->cart->getProducts() as $product) { $description = $this->model_catalog_product->getProduct($product['product_id']); $description = utf8_substr(strip_tags(html_entity_decode($description['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..'; И в массив добавьте так 'description' => $description, 1 Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 4 минуты назад, thentru сказал: добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php Согласен, либо так. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777 × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News 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 × 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
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Потому что его нет в массиве 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Только что, legioner26 сказал: Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. я вообще то добавил Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 $this->load->model('catalog/product'); foreach ($this->cart->getProducts() as $product) { $description = $this->model_catalog_product->getProduct($product['product_id']); $description = utf8_substr(strip_tags(html_entity_decode($description['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..'; И в массив добавьте так 'description' => $description, 1 Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 4 минуты назад, thentru сказал: добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php Согласен, либо так. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777 × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News 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 × 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
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Только что, legioner26 сказал: Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. я вообще то добавил Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 $this->load->model('catalog/product'); foreach ($this->cart->getProducts() as $product) { $description = $this->model_catalog_product->getProduct($product['product_id']); $description = utf8_substr(strip_tags(html_entity_decode($description['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..'; И в массив добавьте так 'description' => $description, 1 Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 4 минуты назад, thentru сказал: добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php Согласен, либо так. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777 × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News 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 × 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
REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Только что, legioner26 сказал: Необходимо обратиться к базе по ID и выдернуть описание, потом добавить его в массив. я вообще то добавил Link to comment Share on other sites More sharing options...
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 $this->load->model('catalog/product'); foreach ($this->cart->getProducts() as $product) { $description = $this->model_catalog_product->getProduct($product['product_id']); $description = utf8_substr(strip_tags(html_entity_decode($description['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..'; И в массив добавьте так 'description' => $description, 1 Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 4 минуты назад, thentru сказал: добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php Согласен, либо так. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777 × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News 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 × 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
thentru Posted April 26, 2018 Share Posted April 26, 2018 добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php 1 Link to comment Share on other sites More sharing options...
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 4 минуты назад, thentru сказал: добавьте в класс корзины system\library\cart\cart.php или system\library\cart.php Согласен, либо так. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777 × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News 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 × 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
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Но лучше не трогать класс корзины. Все-таки это стандарт. 1 Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Chameleon - Responsive & Multipurpose Opencart Template + Quick Start By 29aleksey Wayforpay API оплата для Opencart 2.3, 3.x By bogdan281989 TgMarket - Модуль интернет магазина в телеграмме. By Rassol2 ShowCase – Responsive / Multipurpose Opencart Template By octemplates Telnotification By Yevhenii_7777
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 Лучше в контроллере 1 Link to comment Share on other sites More sharing options... REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: General questions Не выводит описание товара в корзине
REDDI Posted April 26, 2018 Author Share Posted April 26, 2018 Спасибо всем) Link to comment Share on other sites More sharing options...
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 1 минуту назад, REDDI сказал: Спасибо всем) Нз Link to comment Share on other sites More sharing options... thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options... legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0 Go to topic listing Similar Content Дополнительное описание для товаров и категорий By SirGrey, October 8, 2020 описание полей (and 6 more) Tagged with: описание полей дополнительное поле дополнительное описание дополнительное описание категориям дополнительное описаниие товара краткое описание краткое описание товара 0 comments 2,284 views SirGrey October 8, 2020 Вывод сообщения товар новый By polddim98, January 9 1 reply 203 views WarStyle January 19 мы рекомендуем Корзина By OCdevWizard, March 12, 2018 ocdevwizard всплывающая корзина (and 11 more) Tagged with: ocdevwizard всплывающая корзина корзина popup cart shopping cart корзина+опции попап корзина модуль корзины корзина покупок cart popucart умная корзина sidebar cart 0 comments 12,822 views OCdevWizard March 12, 2018 функция добавления товара в корзину By AlexMax13, January 2 2 replies 163 views AlexMax13 January 2 модуль вывода товаров из категорий By AlexMax13, December 30, 2022 2 replies 172 views AlexMax13 January 1 Recently Browsing 0 members No registered users viewing this page.
thentru Posted April 26, 2018 Share Posted April 26, 2018 (edited) 5 минут назад, legioner26 сказал: Но лучше не трогать класс корзины. Все-таки это стандарт. а делать n лишних запросов на товары при каждой загрузке страницы ? Edited April 26, 2018 by thentru Link to comment Share on other sites More sharing options...
legioner26 Posted April 26, 2018 Share Posted April 26, 2018 3 минуты назад, thentru сказал: а делать n лишних запросов на товары при каждой загрузке страницы ? Ну в данном случае это не сильно повлияет на загрузку страницы . Ну как бы да согласен, запрос все же запрос. Но в таком случае тогда модиф написать для класса. 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 0
Recommended Posts