I would like to change the price of the bundle product items after its has been added to cart and recalculate the bundle product price and changing the bundle item price.
I was thinking of using the checkout_cart_product_add_after
event but I am not sure how to modify the bundle item prices.
I have seen some of the answers here but they show how to modify the bundle product price not the bundle item prices
Best Answer
So finally I was able to achieve this, first we need a
events.xml
For my requirement I needed this event observer for both frontend and adminhtml so the
events.xml
was create atapp/code/Foo/CustomPrice/etc/events.xml
.After that need a observer at
app/code/Foo/CustomPrice/Model/Observer/SetPriceForItem.php