Badges on products limit

  • Posts: 38
  • Thank you received: 2
5 years 8 months ago #308017

-- 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.

  • Posts: 83480
  • Thank you received: 13505
  • MODERATOR
5 years 8 months ago #308018

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.

  • Posts: 38
  • Thank you received: 2
5 years 8 months ago #308068

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: 5 years 8 months ago by Vlad Boch.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum