Jump to content

Новая версия VamShop 1.99.32


Recommended Posts

support
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, ссылку на магазин.

Я на месте посмотрю.

Я у себя не вижу двоения, троения.

В демке тоже.

Толи у Вас скопированы товары, то ли что.

Link to post
Share on other sites
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

  • support

    27

  • vitaly

    16

  • Alessandro

    8

  • loaded

    2

Top Posters In This Topic

Posted Images

Задвоения в демке:

 

Screenshot_2021-05-26 Новинки VamShop.png

6 минут назад, support сказал:

Толи у Вас скопированы товары, то ли что.

Товары размножаются, когда мы 1 товар копируем в другие категории. Т.е. товар может относиться к категориям: архитектура, спорт, 3D, футбол,...

При копировании в другие категории выбирали:

Способ копирования:
Ссылка на товар

Link to post
Share on other sites
support
5 часов назад, vitaly сказал:

Товары размножаются, когда мы 1 товар копируем в другие категории. Т.е. товар может относиться к категориям: архитектура, спорт, 3D, футбол,...

 

Исправил, проверьте.

Вот исправленные файлы:

best_sellers.php
featured.php
products_new.php
specials.php

best_sellers.php featured.php products_new.php specials.php

Link to post
Share on other sites
В 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

 

 

Размножились товары на странице карточки товара в разделе "С данным товаром также покупают:".

Из какого файла выводится данный раздел?

Спасибо.

Link to post
Share on other sites
support
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

По идее, там.

Link to post
Share on other sites
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

До обновления такого не было.

 

Link to post
Share on other sites
support
43 минуты назад, vitaly сказал:

До обновления такого не было.

 

Давайте ещё раз, с каким именно блоком проблема?!

На странице карточки товара, как блок называется?!

Так же покупают?! Дуюлируются скопированные товары?

Всё правильно?

Link to post
Share on other sites

Страница «Карточка товара» Дублирование товаров в разделе «С данным товаром также покупают».

Думаю, дублируются товары, у которых указаны разные категории, т. е. скопированные. 

Link to post
Share on other sites
support
10 часов назад, vitaly сказал:

Страница «Карточка товара» Дублирование товаров в разделе «С данным товаром также покупают».

Думаю, дублируются товары, у которых указаны разные категории, т. е. скопированные. 

Вот исправленный /includes/classes/product.php

 

product.php

Link to post
Share on other sites
В 29.05.2021 в 10:28, support сказал:

Вот исправленный /includes/classes/product.php

Спасибо.

Теперь товары не размножаются.

Link to post
Share on other sites
support
3 часа назад, vitaly сказал:

Спасибо.

Теперь товары не размножаются.

Хорошо, спасибо, что сообщили о проблеме.

Link to post
Share on other sites
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.

 

Link to post
Share on other sites
support
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

Link to post
Share on other sites
support

Небольшая правка фильтров.

https://demo.vamshop.ru/tablets/pamyat/16-gb-32-gb.html

Можно отключать каждый фильтр в отдельности, а не только целую группу сразу.

т.е. напротив каждого отдельного пункта появился крестик закрытия фильтра + закрытие группы, что б сбросить группу фильтров одним кликом.

Link to post
Share on other sites
В 08.06.2021 в 13:08, support сказал:

Небольшая правка фильтров.

https://demo.vamshop.ru/tablets/pamyat/16-gb-32-gb.html

Можно отключать каждый фильтр в отдельности, а не только целую группу сразу.

т.е. напротив каждого отдельного пункта появился крестик закрытия фильтра + закрытие группы, что б сбросить группу фильтров одним кликом.

эти изменения уже внесены в архив?

Link to post
Share on other sites
support
25 минут назад, geval сказал:

эти изменения уже внесены в архив?

Да, в патче добавлено - 

 

Link to post
Share on other sites
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

 

Link to post
Share on other sites
support
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

Link to post
Share on other sites
  • 2 months later...

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

 

 

Link to post
Share on other sites
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 ";

 

Link to post
Share on other sites
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

 

Link to post
Share on other sites

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

Schermata 2021-09-15 alle 14.45.31.png

Schermata 2021-09-15 alle 14.46.36.png

Schermata 2021-09-15 alle 14.48.10.png

Edited by Alessandro
link add
Link to post
Share on other sites
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...