V1.1.0EE: How to fix incompatible issue with M2.4.2/2.4.3 EE?

Created by Jane D, Modified on Mon, 29 Nov 2021 at 09:36 AM by Jane D

QUESTION:

We just bought the Magento 2 Catalog Price Rule per Store View module, but I see that is not compatible with Magento 2.4.2 EE that we have. 

We had a similar case when we bought the Store View pricing module and you had a patch available. 

Do you think that you already have a patch for this module too? 


This is the error I get when I compile the code:
Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 125.0 MiBPHP 

Fatal error: Declaration of Bss\CatalogRulePerStoreView\Model\ResourceModel\Product\LinkedProductSelectBuilderByCatalogRulePrice::build($productId) 

must be compatible with 

Magento\Catalog\Model\ResourceModel\Product\LinkedProductSelectBuilderInterface::build(int $productId, int $storeId): 

array in /app/code/Bss/CatalogRulePerStoreView/Model/ResourceModel/Product/LinkedProductSelectBuilderByCatalogRulePrice.php on line 94


ANSWER:


- For this incompabile issue, please fix as below:


File app/code/Bss/CatalogRulePerStoreView/Model/ResourceModel/Product/LinkedProductSelectBuilderByCatalogRulePrice.php 


 If you have any other question or concern, please feel free to contact us. We'd be happy to support!






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 how can we improve this article!

Select atleast one of the reasons

Feedback sent

We apprciate your effort and will try to fix the article