Fix Conflict issue with BSS Catalog price rule store view module for Magento 2

Created by Katie Bui, Modified on Wed, 20 Nov 2019 at 02:59 PM by Nicole Le


When we install 2 modules together, the catalog price rule doesn’t seem to be working.


Currently, we have updated our Multiple Store View Pricing with a function which allows the catalog price rule with price as a condition can work in multiple store view.

The function will work only if you have Price as a condition -

For example:
* Currency rate 1 USD = 0.5 EUR = 100 JPY
* Base currency for store view: Default - USD; Storeview1 - EUR; Japanese - JPY
* Set up a rule with price equals or greater than 50 (USD)
Expected result
* Catalog price rule only applies to a product if the price equals or greater than Default - 50USD, Storeview1 - 25EUR, Japanese - 5000JPY

Hence, if you don't use this function on your site, you can simply remove this function by commenting out the following code 

in file:


<!-- <preference for="Magento\CatalogRule\Model\Indexer\ReindexRuleProduct" type="Bss\MultiStoreViewPricingCatalogRule\Model\Indexer\ReindexRuleProduct" />

    <preference for="Magento\CatalogRule\Model\Indexer\ReindexRuleGroupWebsite" type="Bss\MultiStoreViewPricingCatalogRule\Model\Indexer\ReindexRuleGroupWebsite" />

    <preference for="Magento\CatalogRule\Model\Rule\Condition\Product" type="Bss\MultiStoreViewPricingCatalogRule\Model\Rule\Condition\Product" />

    <preference for="Magento\CatalogRule\Model\Rule" type="Bss\MultiStoreViewPricingCatalogRule\Model\Rule" /> -->

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 atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article