1

i've built a special price observer similar to the example explained in the magento wiki but now i'm facing the problem, that the "new" price is only shown within the catalog, but not within the shopping cart or totals..

I've also tried to apply it using

Mage::dispatchEvent('catalog_product_get_final_price',array('product'=>product)); 

within the _getProduct() in the Mage_Checkout_Model_Cart class

Do i have to rewrite my observer for sales_order_place_after or something like this?

thanks for any help!

1 Answer 1

0

Use the "sales_quote_collect_totals_before" / "sales_quote_collect_totals_after" event, which fires every time when totals changes.

It is called withing the "collectTotals()" method in Quote.php, every time the cart gets updated, and at other events

2
  • thanks.. hm, this solves the total problem, but the display of the product prices within the cart won't be affected... and i'll have to duplicate my code on 3 different places.
    – theColaKid
    Jan 6, 2012 at 13:54
  • you will have to extend the blocks in a few different areas to change the renders. Jan 17, 2012 at 3:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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