v2.2.4: Fix the Reindexing Catalog Rule Product issue on M2.3.5 CE

Created by Support Agent, Modified on Fri, 3 Apr at 5:36 AM by Support Agent

Issue:


I have upgraded our Magento to the last version released M2.3.5 CE and use module's version 2.2.4, but the extension is not working. It throws this error in console when compiling code:


Warning: Declaration of Bss\MultiStoreViewPricingCatalogRule\Model\Indexer\RuleProductsSelectBuilder::build($websiteId, ?Magento\Catalog\Model\Product $product = NULL, $useAdditionalTable = false, $storeId = NULL) should be compatible with Magento\CatalogRule\Model\Indexer\RuleProductsSelectBuilder::build(int $websiteId, ?int $productId = NULL, bool $useAdditionalTable = false) in /data/web/magento2/app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/RuleProductsSelectBuilder.php on line 193 

 

Solution:


Regarding the issue you reported, we would like to update that our module is not compatible with Magento 2.3.5 currently.  

However, our dev has hot-fixed it and we would like to send you the fixed files.
To solve this error, please edit these two files below to fix the issue:

app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/ReindexRuleProductPrice.php (change type of param form function execute corresponding with core)
app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/RuleProductsSelectBuilder.php (change type of param form function execute corresponding with core) 

Please check and replace the fixed files on your site.


If you have any issues, please feel free to contact us at sales@bsscommerce.com    

We are more than happy to support you.


Get to know about us:


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


We are pleased to introduce our most powerful extensions:


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


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