I'm completely new to magento and i've read some threads in this forum but i'm not quite sure whether my solution is correct.
I have a product which can change its price depending on the customers choice. for example customer can choose how many square meters of the product he wants to buy. Depending on that choice the price has to be recalculated and should be displayed immediately.
This is done via ajax call to my customized controller which overrides the "Mage_Core_Controller_Front_Action"
Second, i have registered an observer for the "catalog_product_get_final_price" event. This observer overrides the final price in the product with my own calculated final price.
My questions now are:
- Is this the best possible solution for this problem?
- Are there any problems with this solution? Did i miss something very important?
- What do i have to test?