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!