2

Before I start to code this I just wanted to ask: is it possible to create a shopping price rule that will disable catalog price rule calculations?

Thanks

3

Unfortunately NO.
Catalog price rules an cart price rules are independent.
The catalog rules are parsed separately via the price index and recalculated every night.
The final price of a product may or may not be influenced by a catalog rule.
The cart rules, don't care where the final price comes from. they just use it. So there is no way to determine if a catalog rule was applied to the price and disable it on the fly.
Also you cannot increase prices (not by default at least) by using the cart rules. You can only decrease them.

  • I was able to achievie things I've wanted on product and cart level. Also checkout worked fine with this modification. All I did was disable the CatalogRule Observer on some session conditions. – MagentoNinja Nov 23 '14 at 14:02
  • But there is another problem. Product listing collection takes price from another model and once I find where I'll submit my solutions as a community extension. – MagentoNinja Nov 23 '14 at 14:03
  • is any alternative solution in there? – Amit Bera Jan 14 '15 at 13:10
0

I post a solution here: https://stackoverflow.com/questions/11718504/catalog-price-rule-vs-shopping-cart-rule/34099115#34099115

The idea came from Marshall Thornton' blog: http://www.magentotips.info/modules/catalog-shopping-cart-pricing-rules-stacking/#.VmIev98rKV4

Basicaly you need to extend Mage_SalesRule_Model_Validator::process() method

  • Did you delete your solution in the linked answer? I can't seem to find it anymore. – Louis B. Jun 10 '16 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.