1

i have a situation where i need to apply a custom price (calculated based on cost price) on products before catalog promotion rules being applied. Currently i have successfully applied product price by overriding

getPrice() 

method from /app/code/core/Mage/Catalog/Model/Product/Type/Price.php and

catalog_product_collection_load_after

event. but it blocks catalog rule to be applied. i.e default catalog rules are now disabled. In short i want to modify product price before catalog rule being applied. Is there a way i can achieve this? Thanks in advance for any kind of help.

0

You can extend

Mage_Catalog_Model_Product_Type_Configurable_Price

and

Mage_Catalog_Model_Product_Type_Price

And modify the getFinalPrice method to change prices for configurable and simple products.

This will modify the price before any other catalog price rules are applied.

  • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules. – Haris Aug 20 '15 at 9:09

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.