M2.4.4, v1.2.1: Fix issue when reindexing by cron

Created by Esther Nguyen, Modified on Thu, 29 Dec, 2022 at 11:29 AM by Esther Nguyen

ISSUE:

When we are saving the product, it adds an entry to the database table. After 5 mins, when reindex command executes, it removes the entry from the database table. So please wait 5 minutes after saving the product. See now we have a special price and dates for this product but the label not showing on the front end.



SOLUTION:

We found an error when indexing by cron. Products do not pass the validation process, so the label cannot be added to bss_productlabel_flat table in the file app/code/Bss/ProductLabel/Model/Label.php 


To resolve the issue, please edit the file app/code/Bss/ProductLabel/Model/Label.php:



Or download the file attached below to override the current file on your site.


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article