max1985 Posted August 9, 2018 Share Posted August 9, 2018 Собственно весь вопрос в теме: Как добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках? Может кто гделал икое? Спасипотому что! Link to comment Share on other sites More sharing options... Tom Posted August 9, 2018 Share Posted August 9, 2018 https://forum.opencart.com/viewtopic.php?t=96874 https://forum.opencart.com/viewtopic.php?t=153316 Link to comment Share on other sites More sharing options... anboza Posted August 9, 2018 Share Posted August 9, 2018 вот из заготовок решение, не мое, но рилииет норм. Спойлер catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 12 часов назад, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Спасипотому что! Но выдает Notice: Undefined property: Proxy::getAllWishlist(); Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 40 минут назад, max1985 сказал: Undefined property: Proxy::getAllWishlist(); catalog\model\account\wishlist.php должен выглягдеть ик: Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
Tom Posted August 9, 2018 Share Posted August 9, 2018 https://forum.opencart.com/viewtopic.php?t=96874 https://forum.opencart.com/viewtopic.php?t=153316 Link to comment Share on other sites More sharing options... anboza Posted August 9, 2018 Share Posted August 9, 2018 вот из заготовок решение, не мое, но рилииет норм. Спойлер catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 12 часов назад, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Спасипотому что! Но выдает Notice: Undefined property: Proxy::getAllWishlist(); Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 40 минут назад, max1985 сказал: Undefined property: Proxy::getAllWishlist(); catalog\model\account\wishlist.php должен выглягдеть ик: Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
anboza Posted August 9, 2018 Share Posted August 9, 2018 вот из заготовок решение, не мое, но рилииет норм. Спойлер catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 12 часов назад, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Спасипотому что! Но выдает Notice: Undefined property: Proxy::getAllWishlist(); Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 40 минут назад, max1985 сказал: Undefined property: Proxy::getAllWishlist(); catalog\model\account\wishlist.php должен выглягдеть ик: Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 12 часов назад, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Спасипотому что! Но выдает Notice: Undefined property: Proxy::getAllWishlist(); Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 40 минут назад, max1985 сказал: Undefined property: Proxy::getAllWishlist(); catalog\model\account\wishlist.php должен выглягдеть ик: Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
anboza Posted August 10, 2018 Share Posted August 10, 2018 40 минут назад, max1985 сказал: Undefined property: Proxy::getAllWishlist(); catalog\model\account\wishlist.php должен выглягдеть ик: Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
anboza Posted August 10, 2018 Share Posted August 10, 2018 и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 19 минут назад, anboza сказал: и не забудьте обновить кеш всего. изменения вносятся и в могдели и в контроллеры Notice: Undefined variable: this in /system/storage/modification/catalog/controller/product/category.php on line 42Notice: Trying to get property of non-object in /system/storage/modification/catalog/controller/product/category.php on line 42 Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
anboza Posted August 10, 2018 Share Posted August 10, 2018 пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 3 минуты назад, anboza сказал: пришлите архивом файлы, которые нужно по инструкции изменить, погляджу. Вот wish.zip Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений 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
anboza Posted August 10, 2018 Share Posted August 10, 2018 8 минут назад, max1985 сказал: Вот wish.zip изменения в 5-и файлах Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 5 минут назад, anboza сказал: изменения в 5-и файлах мне в карточке не надо менять Link to comment Share on other sites More sharing options... anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 2.x Opencart 2.x: Общие вопросы Добавить стиль к кнопке "В закладки" если данный товар находится уже в закладках
anboza Posted August 10, 2018 Share Posted August 10, 2018 wish_remake.rar 1 Link to comment Share on other sites More sharing options... max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2 Go to topic listing Similar Content Закладки товаров без авторизации By optimlab, June 15, 2018 закладка закладки без регистрации (and 5 more) Tagged with: закладка закладки без регистрации закладки закладки opencart закладки товаров wishlist wish list 0 comments 2,126 views optimlab June 16, 2018 Модуль Сравнения товаров ( + Закладки ) NEW By pikitos, September 13, 2014 сравнение сравнение товаров (and 5 more) Tagged with: сравнение сравнение товаров модуль сравнения сравнение по категориям в закладки в сравнение сравнение характеристик 0 comments 9,654 views pikitos September 13, 2014 Кнопка "Добавить изображение" пересила рилиить (админка) By mss, July 22, 2016 добавить изображение кнопка 6 replies 989 views KIRIK48 Monday at 04:13 PM Изменение стиля кнопок "Купить", "В закладки" и "Сравнение". By petyann, January 15 3 replies 215 views Golubenko January 15 Как сгделать неактивной в ЗАКЛАДКАХ кнопку "Купить", если товара нет в налилии? By petyann, January 19 2 replies 140 views petyann January 19 Recently Browsing 0 members No registered users viewing this page.
max1985 Posted August 10, 2018 Author Share Posted August 10, 2018 Спасипотому что! Буду пропотому чтовать! Link to comment Share on other sites More sharing options... 2 years later... vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options... 7 months later... Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options... 4 months later... voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. 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 2
vladimir911 Posted September 16, 2020 Share Posted September 16, 2020 Добрый гдень, но при возврате в каилог товаров сергдечки опять теряют цвет? был бы смысл их подкрашивать чтоб при вхогде залогиненного пользователя он в каилоге сразу увигдел что товар был отмечен! и в карточке товара осивить красное сергдечко Link to comment Share on other sites More sharing options...
Mat Posted April 17, 2021 Share Posted April 17, 2021 В 09.08.2018 в 22:18, anboza сказал: вот из заготовок решение, не мое, но рилииет норм. Скрыть контент catalog\model\account\wishlist.php public function getAllWishlist() { if ($data = $this->getWishlist()) { $out = array(); foreach ($data as $key => $value) { $out[] = $value['product_id']; } return $out; } else if (isset($this->session->data['wishlist'])) { return $this->session->data['wishlist']; } } catalog\view\theme\default\template\product\category.tpl вместо: <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> <?php if(in_array($product['product_id'], $AllWishlist)) { ?> style="color: red" <?php } ?> <?php } ?> type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> catalog\controller\product\category.php перед $data['breadcrumbs'] = array(); это: $this->load->model('account/wishlist'); $data['AllWishlist'] = $this->model_account_wishlist->getAllWishlist(); catalog\controller\product\product.php перед if ($product_info) { $url = ''; это: $this->load->model('account/wishlist'); $zol_wish = $this->model_account_wishlist->getAllWishlist(); if (isset($product_id) && isset($zol_wish)) { if (in_array($product_id, $zol_wish)) { $data['AllWishlist'] = true; } } catalog\view\theme\default\template\product\product.tpl вместо: <button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button> это: <button <?php if(isset($AllWishlist)) { ?> style="color: red" <?php } ?> type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>'); ChangeColor(this);"><i class="fa fa-heart"></i></button> <script type="text/javascript"> function ChangeColor(Element) { Element.style.color = 'red'; } </script> а как вывести в модулях, Рекомендуемые, Новинки... Link to comment Share on other sites More sharing options...
voronlviv Posted September 1, 2021 Share Posted September 1, 2021 А кто підкаже как реалізувати ике: Якчто товар уже в закладках, повинна изменениятися запис замысть "в закладки" на "уже в закладках" і при клацаннет на значок закладок відкривались закладки, а не спливаюче вікно, что товар снова додано в закладки.. Link to comment Share on other sites More sharing options...
Recommended Posts