Skip to main content
Tweeted twitter.com/#!/StackMagento/status/403508897153290240
added 29 characters in body
Source Link
felixflu
  • 11
  • 1
  • 3

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:

  1. Is this the best possible solution for this problem?
  2. Are there any problems with this solution? Did i miss something very important?
  3. What do i have to test?

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:

  1. Is this the best possible solution for this problem?
  2. Are there any problems with this solution? Did i miss something very important?

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:

  1. Is this the best possible solution for this problem?
  2. Are there any problems with this solution? Did i miss something very important?
  3. What do i have to test?
Source Link
felixflu
  • 11
  • 1
  • 3

Dynamic price calculation for product

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:

  1. Is this the best possible solution for this problem?
  2. Are there any problems with this solution? Did i miss something very important?