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

Created by Esther Nguyen, Modified on Tue, 7 Apr at 10:03 AM by Support Agent

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 care about us, here are our information:


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows.


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