I'm Working on a Website That Sells WallPapers stickers I want My Products to have Dynamic Prices as Follows:

  • DropDown Which will specify the Material Of the wallpaper
  • 2 text Fields ("Width", "Height")

and Based on The Material will Be the Multiply Value in the square space


Materials :

  • (1) wallpaper = 5$ per 1 square feet

  • (2) vinyl Sticker = 7$ per 1 square feet

so the price of a Product of Wallpaper material with width 5 and Height 6 will be ((5 * 6) * 5$)

any Idea how can i achieve that ?

1 Answer 1


In my opinion you can achieve this by setting the initial price of the product to zero and while adding the product to cart you can hook on the event sales_quote_add_item and write your observer model to do the calculation based on the selection on the product details page. Once the total price of the product is calculated you can use the method setOriginalCustomPrice() against the quote item an pass the price to this method like $quote_item->setOriginalCustomPrice($calculated_price);

The whole process will take time to explain, but this can give you a starting point.


  • I understand but since i'm Newbi in Magento Development Please Try to provide full explanation or tutorial or any resource Commented Apr 13, 2015 at 13:11
  • Please Provide little detailed explanation if u can Commented Apr 27, 2015 at 7:23

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.