support 446 Posted May 26, 2021 Author Report Share Posted May 26, 2021 51 минуту назад, vitaly сказал: Думаю, проблема всё же в SQL-запросах. Могу выслать по почте дамп БД. У нас запрос select * from products_to_categories where products_id='3295'; Выдает шесть строк: products_id categories_id 3295 25 3295 27 3295 32 3295 58 3295 92 3295 93 Пришлите мне в личку доступ на ftp, ссылку на магазин. Я на месте посмотрю. Я у себя не вижу двоения, троения. В демке тоже. Толи у Вас скопированы товары, то ли что. Quote Link to post Share on other sites
vitaly 1 Posted May 26, 2021 Report Share Posted May 26, 2021 Задвоения в демке: 6 минут назад, support сказал: Толи у Вас скопированы товары, то ли что. Товары размножаются, когда мы 1 товар копируем в другие категории. Т.е. товар может относиться к категориям: архитектура, спорт, 3D, футбол,... При копировании в другие категории выбирали: Способ копирования: Ссылка на товар Quote Link to post Share on other sites
support 446 Posted May 26, 2021 Author Report Share Posted May 26, 2021 5 часов назад, vitaly сказал: Товары размножаются, когда мы 1 товар копируем в другие категории. Т.е. товар может относиться к категориям: архитектура, спорт, 3D, футбол,... Исправил, проверьте. Вот исправленные файлы: best_sellers.php featured.php products_new.php specials.php best_sellers.php featured.php products_new.php specials.php Quote Link to post Share on other sites
vitaly 1 Posted May 27, 2021 Report Share Posted May 27, 2021 В 26.05.2021 в 23:16, support сказал: Исправил, проверьте. Протестировал. Товары не размножаются. Но SQL-запрос из фала featured.php: SELECT p.*, pd.*, cd.*, f.* FROM products p, products_description pd, featured f, products_to_categories p2c, categories c, categories_description cd WHERE p.products_status = '1' AND c.categories_status = 1 AND cd.categories_id = c.categories_id AND p.products_id = p2c.products_id AND c.categories_id = p2c.categories_id AND p.products_quantity > 0 AND f.products_id = p.products_id AND p.products_id = pd.products_id AND pd.language_id = '1' AND f.status = '1' GROUP BY p.products_id ORDER BY f.featured_date_added DESC В MySQL Workbench возвращает ошибку: 23:52:19 SELECT p.*, pd.*, cd.*, f.* FROM products p, products_description pd, featured f, products_to_categories p2c, categories c, categories_description cd WHERE p.products_status = '1' AND c.categories_status = 1 AND cd.categories_id = c.categories_id AND p.products_id = p2c.products_id AND c.categories_id = p2c.categories_id AND p.products_quantity > 0 AND f.products_id = p.products_id AND p.products_id = pd.products_id AND pd.language_id = '1' AND f.status = '1' GROUP BY p.products_id ORDER BY f.featured_date_added DESC LIMIT 0, 50000 Error Code: 1055. Expression #61 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'testprod.cd.categories_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 0,00023 sec Размножились товары на странице карточки товара в разделе "С данным товаром также покупают:". Из какого файла выводится данный раздел? Спасибо. Quote Link to post Share on other sites
support 446 Posted May 27, 2021 Author Report Share Posted May 27, 2021 38 минут назад, vitaly сказал: Протестировал. Товары не размножаются. Но SQL-запрос из фала featured.php: SELECT p.*, pd.*, cd.*, f.* FROM products p, products_description pd, featured f, products_to_categories p2c, categories c, categories_description cd WHERE p.products_status = '1' AND c.categories_status = 1 AND cd.categories_id = c.categories_id AND p.products_id = p2c.products_id AND c.categories_id = p2c.categories_id AND p.products_quantity > 0 AND f.products_id = p.products_id AND p.products_id = pd.products_id AND pd.language_id = '1' AND f.status = '1' GROUP BY p.products_id ORDER BY f.featured_date_added DESC В MySQL Workbench возвращает ошибку: 23:52:19 SELECT p.*, pd.*, cd.*, f.* FROM products p, products_description pd, featured f, products_to_categories p2c, categories c, categories_description cd WHERE p.products_status = '1' AND c.categories_status = 1 AND cd.categories_id = c.categories_id AND p.products_id = p2c.products_id AND c.categories_id = p2c.categories_id AND p.products_quantity > 0 AND f.products_id = p.products_id AND p.products_id = pd.products_id AND pd.language_id = '1' AND f.status = '1' GROUP BY p.products_id ORDER BY f.featured_date_added DESC LIMIT 0, 50000 Error Code: 1055. Expression #61 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'testprod.cd.categories_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 0,00023 sec Размножились товары на странице карточки товара в разделе "С данным товаром также покупают:". Из какого файла выводится данный раздел? Спасибо. У меня вроде странице featured нормальная. В /includes/classes/product.php getAlsoPurchased getCrossSell По идее, там. Quote Link to post Share on other sites
vitaly 1 Posted May 28, 2021 Report Share Posted May 28, 2021 22 часа назад, support сказал: В /includes/classes/product.php getAlsoPurchased Получаем запрос: $orders_query = SELECT p.*, pd.*, cd.* FROM products p, products_description pd, products_to_categories p2c, categories c, categories_description cd WHERE p.products_id = p2c.products_id AND p.products_id = pd.products_id AND p2c.categories_id = c.categories_id AND cd.categories_id = c.categories_id AND p.products_id IN ('3424' , '2204', '3399', '3400', '3291', '3290', '3397', '3398') AND p.products_status = '1' AND pd.language_id = '1' AND p.products_quantity > '0' ORDER BY FIELD(p.products_id, '3424', '2204', '3399', '3400', '3291', '3290', '3397', '3398') LIMIT 8 Который возвращает множество одинаковых строк: products_id guid products_ean products_quantity products_quantity_min products_quantity_max products_shippingtime products_model 3399 7 1 1000 4 16558 3399 7 1 1000 4 16558 3399 7 1 1000 4 16558 3399 7 1 1000 4 16558 3399 7 1 1000 4 16558 3399 7 1 1000 4 16558 3400 6 1 1000 4 16552 3400 6 1 1000 4 16552 До обновления такого не было. Quote Link to post Share on other sites
support 446 Posted May 28, 2021 Author Report Share Posted May 28, 2021 43 минуты назад, vitaly сказал: До обновления такого не было. Давайте ещё раз, с каким именно блоком проблема?! На странице карточки товара, как блок называется?! Так же покупают?! Дуюлируются скопированные товары? Всё правильно? Quote Link to post Share on other sites
vitaly 1 Posted May 28, 2021 Report Share Posted May 28, 2021 Страница «Карточка товара» Дублирование товаров в разделе «С данным товаром также покупают». Думаю, дублируются товары, у которых указаны разные категории, т. е. скопированные. Quote Link to post Share on other sites
support 446 Posted May 29, 2021 Author Report Share Posted May 29, 2021 10 часов назад, vitaly сказал: Страница «Карточка товара» Дублирование товаров в разделе «С данным товаром также покупают». Думаю, дублируются товары, у которых указаны разные категории, т. е. скопированные. Вот исправленный /includes/classes/product.php product.php Quote Link to post Share on other sites
vitaly 1 Posted May 30, 2021 Report Share Posted May 30, 2021 В 29.05.2021 в 10:28, support сказал: Вот исправленный /includes/classes/product.php Спасибо. Теперь товары не размножаются. Quote Link to post Share on other sites
support 446 Posted May 30, 2021 Author Report Share Posted May 30, 2021 3 часа назад, vitaly сказал: Спасибо. Теперь товары не размножаются. Хорошо, спасибо, что сообщили о проблеме. Quote Link to post Share on other sites
Alessandro 0 Posted June 1, 2021 Report Share Posted June 1, 2021 Hi, in the template5 the cookie alert not found. I see the different Template 5 to Template 4 and in the footer the code is not compilated: {if $smarty.const.ENABLE_COOKIE_ALERT == 'true' && {cookie name="cookie-alert"} != 1} <div class="alert alert-secondary fade show cookie-alert" id="cookie-alert" role="alert"> {$smarty.const.TEXT_ALERT_COOKIE} <button type="button" class="btn btn-inverse btn-sm" data-dismiss="alert" aria-label="{$smarty.const.TEXT_COOKIE_CLOSE}">{$smarty.const.TEXT_COOKIE_OK}</button> </div> {/if} I add the code but if i click to OK on the button the banner not close. Quote Link to post Share on other sites
support 446 Posted June 1, 2021 Author Report Share Posted June 1, 2021 1 час назад, Alessandro сказал: Hi, in the template5 the cookie alert not found. I see the different Template 5 to Template 4 and in the footer the code is not compilated: {if $smarty.const.ENABLE_COOKIE_ALERT == 'true' && {cookie name="cookie-alert"} != 1} <div class="alert alert-secondary fade show cookie-alert" id="cookie-alert" role="alert"> {$smarty.const.TEXT_ALERT_COOKIE} <button type="button" class="btn btn-inverse btn-sm" data-dismiss="alert" aria-label="{$smarty.const.TEXT_COOKIE_CLOSE}">{$smarty.const.TEXT_COOKIE_OK}</button> </div> {/if} I add the code but if i click to OK on the button the banner not close. Cookie alert added to vamshop5 template. Archive attached with changed files. Copy files. Clear all cache files at /templates/vamshop4/cache Set True to Cookie Alert option at Admin - Settings - My Store. vamshop5-cookie-alert.zip Quote Link to post Share on other sites
support 446 Posted June 8, 2021 Author Report Share Posted June 8, 2021 Небольшая правка фильтров. https://demo.vamshop.ru/tablets/pamyat/16-gb-32-gb.html Можно отключать каждый фильтр в отдельности, а не только целую группу сразу. т.е. напротив каждого отдельного пункта появился крестик закрытия фильтра + закрытие группы, что б сбросить группу фильтров одним кликом. Quote Link to post Share on other sites
geval 3 Posted June 11, 2021 Report Share Posted June 11, 2021 В 08.06.2021 в 13:08, support сказал: Небольшая правка фильтров. https://demo.vamshop.ru/tablets/pamyat/16-gb-32-gb.html Можно отключать каждый фильтр в отдельности, а не только целую группу сразу. т.е. напротив каждого отдельного пункта появился крестик закрытия фильтра + закрытие группы, что б сбросить группу фильтров одним кликом. эти изменения уже внесены в архив? Quote Link to post Share on other sites
support 446 Posted June 11, 2021 Author Report Share Posted June 11, 2021 25 минут назад, geval сказал: эти изменения уже внесены в архив? Да, в патче добавлено - Quote Link to post Share on other sites
loaded 0 Posted June 13, 2021 Report Share Posted June 13, 2021 i have a error Fatal error: Uncaught Error: Call to undefined function IsvalidCatOrMan() in D:\xampp\htdocs\testseiten\1.99.32\index.php:55 Stack trace: #0 D:\xampp\htdocs\testseiten\1.99.32\manager.php(94): include() #1 {main} thrown in D:\xampp\htdocs\testseiten\1.99.32\index.php on line 55 Quote Link to post Share on other sites
support 446 Posted June 13, 2021 Author Report Share Posted June 13, 2021 5 часов назад, loaded сказал: i have a error Fatal error: Uncaught Error: Call to undefined function IsvalidCatOrMan() in D:\xampp\htdocs\testseiten\1.99.32\index.php:55 Stack trace: #0 D:\xampp\htdocs\testseiten\1.99.32\manager.php(94): include() #1 {main} thrown in D:\xampp\htdocs\testseiten\1.99.32\index.php on line 55 Check /includes/functions/compatibility.php file. You must have IsvalidCatOrMan function there Quote Link to post Share on other sites
Alessandro 0 Posted September 11, 2021 Report Share Posted September 11, 2021 Hi, I have a problem to duplicate the last product in two category language. https://demo.loschiaccianoci.eu/products_new.php/language/it If i select Italian language i see doble products in category Italian and English and also the other way around. I replaced the product.php and products_new.php file with the ones you posted in this conversation but it didn't resolve. Thanks Quote Link to post Share on other sites
support 446 Posted September 11, 2021 Author Report Share Posted September 11, 2021 1 минуту назад, Alessandro сказал: Hi, I have a problem to duplicate the last product in two category language. https://demo.loschiaccianoci.eu/products_new.php/language/it If i select Italian language i see doble products in category Italian and English and also the other way around. I replaced the product.php and products_new.php file with the ones you posted in this conversation but it didn't resolve. Thanks Hi! Try to open /products_new.php file and change: order by p.products_date_added DESC "; to: group by p.products_id order by p.products_date_added DESC "; Quote Link to post Share on other sites
Alessandro 0 Posted September 11, 2021 Report Share Posted September 11, 2021 Thanks, i changed and double product has been solved. But i have any problem, if I put the Italian language I always see the categories in English. https://demo.loschiaccianoci.eu/products_new.php/language/it/page/2 Quote Link to post Share on other sites
support 446 Posted September 12, 2021 Author Report Share Posted September 12, 2021 8 часов назад, Alessandro сказал: Thanks, i changed and double product has been solved. But i have any problem, if I put the Italian language I always see the categories in English. https://demo.loschiaccianoci.eu/products_new.php/language/it/page/2 Try to change products_new.php WHERE pd.language_id = '" . (int) $_SESSION['languages_id'] . "' and c.categories_status=1 to: WHERE pd.language_id = '" . (int) $_SESSION['languages_id'] . "' and cd.language_id = '" . (int) $_SESSION['languages_id'] . "' and c.categories_status=1 Quote Link to post Share on other sites
Alessandro 0 Posted September 15, 2021 Report Share Posted September 15, 2021 (edited) Hi, I have a problem with removing from favorites and in the cart of products. When the customer adds to favorites he cannot remove them. When the customer tries to remove a product from the cart it doesn't work. You can check in the link: https://loschiaccianoci.eu/ Thanks Edited September 15, 2021 by Alessandro link add Quote Link to post Share on other sites
support 446 Posted September 15, 2021 Author Report Share Posted September 15, 2021 3 часа назад, Alessandro сказал: You can check in the link: https://loschiaccianoci.eu/ Products removed from cart, in my chrome browser. Favorites prodcuts removed from the favorites page - https://loschiaccianoci.eu/wishlist.php Favorites removed too. Try to open your site in incognito tab of chrome browser. Quote Link to post Share on other sites
Alessandro 0 Posted September 15, 2021 Report Share Posted September 15, 2021 Yes on Chrome it's fine, I forgot to tell you that the problem is on SAFARI on both Mac and Ios Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.