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 2:59 PM by Nicole Le

Questions:

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


Answer:

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 - 

https://prnt.sc/pm4tut

For example:
Precondition
* Currency rate 1 USD = 0.5 EUR = 100 JPY
* Base currency for store view: Default - USD; Storeview1 - EUR; Japanese - JPY
Action
* 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:
app/code/Bss/MultiStoreViewPricingCatalogRule/etc/di.xml

or
vendor/bsscommerce/multi-store-pricing-catalog-rule/etc/di.xml

<!-- <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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article