Skip to main content

Badges on products limit

7 years 4 months ago #308017 by Vlad Boch
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.0.33

Hi. Is there some limit on how many products can you attach to one badge? For some reason the discount badge doesn't want to save new products added to it. Could you advise me, please, how to fix this problem?

Please Log in or Create an account to join the conversation.

7 years 4 months ago #308018 by nicolas
Replied by nicolas on topic Badges on products limit
Hi,

There is no limit per se. However, the column badge_product_id where the ids of the products are stored in by default limited to 255 characters for performance issues.
If you want to store more product ids, you can edit that column of the hikashop_badge table via your phpmyadmin and change the column type to "text". The limit will then be around 65000 characters.
However, it might be better to actually create an unpublished category and select that category on your badge and then add that category as a second category to the products on which you want the badge.

Please Log in or Create an account to join the conversation.

7 years 4 months ago - 7 years 4 months ago #308068 by Vlad Boch
Replied by Vlad Boch on topic Badges on products limit
Hi, Nicolas.
I like the second option better, but as far as I know badges don't display on the produc'ts photos, if you attach them to category.

UPD: Never mind. I checked this option again. it works. Thank you for your help.
Last edit: 7 years 4 months ago by Vlad Boch.

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum