How to dynamically modify product price in Magento?

0 votes
247 views
asked May 12, 2016 in Magento by jithesh (150 points)
Hi,

I would like to modify product price on the go. I don't want them to change in inventory, but need to be shown on the front-end, may or may not be based on customer who logged in. Any clue on how to achieve this ?

1 Answer

+2 votes
answered May 12, 2016 by Shabeer
selected May 14, 2016 by mithun
 
Best answer
You need to do this using three observers here, and they are

1. rewrite_finalprice_product
2. catalog_product_collection_load_after
3. checkout_cart_product_add_after.

More detailed article can be found on this blog for reference.

http://phponlinesupport.com/blog/modify-product-price-dynamically-on-the-go-magento/
commented May 24, 2016 by mithunrockey (560 points)
Wonderful solution. I used this for different purpose, to set discounts on the fly for customers which was assigned from a 3rd party application outside magneto. Thank you...

Related questions

+1 vote
1 answer 427 views
0 votes
3 answers 300 views
0 votes
1 answer 357 views
0 votes
1 answer 232 views
0 votes
0 answers 189 views
+2 votes
1 answer 267 views
...