Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8577803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:14:29+00:00 2026-06-11T20:14:29+00:00

I want to calculate price based on the customer selected options. For example,there are

  • 0

I want to calculate price based on the customer selected options.
For example,there are two configurable attributes length,width

Before adding product to cart,I want to modify price based on selected length & width

$finalPrice=$rrp+($length*$width)

Is there any event available to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:14:31+00:00Added an answer on June 11, 2026 at 8:14 pm

    I would look at catalog_product_get_final_price, and for an example usage, see Mage_CatalogRule_Model_Observer::processFrontFinalPrice(). Note that options-based pricing is processed after this event; see Mage_Catalog_Model_Product_Type_Price::getFinalPrice() and Mage_Catalog_Model_Product_Type_Configurable_Price::getFinalPrice().

    Please keep in mind that customizing this functionality requires lots of testing with different quote states, customer states, product types, etc. For example, consider a product which is added to the cart for the first time, then having its quantity updated from the cart. Often it is necessary to implement logic in a couple of methods/observers to handle all permutations.

    Full list for events fired in CE1.7 when customer not logged in, new cart, simple product:

    controller_front_init_routers

    • Mage_Cms_Controller_Router::initControllerRouters()

    controller_action_predispatch

    • Mage_Log_Model_Visitor::initByRequest()
    • Mage_PageCache_Model_Observer::processPreDispatch()
    • Mage_Persistent_Model_Observer::emulateQuote()
    • Mage_Persistent_Model_Observer_Session::renewCookie()
    • Mage_Persistent_Model_Observer::checkExpirePersistentQuote()
    • Mage_Persistent_Model_Observer::emulateCustomer()

    catalog_product_load_after

    • Mage_CatalogInventory_Model_Observer::addInventoryData()

    custom_quote_process

    • Mage_Persistent_Model_Observer::setLoadPersistentQuote()

    sales_quote_config_get_product_attributes

    • Mage_SalesRule_Model_Observer::addProductAttributes()

    prepare_catalog_product_collection_prices

    • Mage_CatalogRule_Model_Observer::prepareCatalogProductCollectionPrices()

    sales_quote_item_collection_products_after_load

    • Mage_CatalogInventory_Model_Observer::addInventoryDataToCollection()

    sales_quote_item_qty_set_after

    • Mage_CatalogInventory_Model_Observer::checkQuoteItemQty()

    sales_quote_collect_totals_before

    • Mage_Tax_Model_Observer::quoteCollectTotalsBefore()

    sales_quote_address_collect_totals_before

    • Mage_Sales_Model_Observer::changeQuoteCustomerGroupId()

    sales_quote_address_collect_totals_after

    • Mage_Sales_Model_Observer::restoreQuoteCustomerGroupId()

    sales_quote_address_collect_totals_before

    • Mage_Sales_Model_Observer::changeQuoteCustomerGroupId()

    catalog_product_get_final_price

    • Mage_CatalogRule_Model_Observer::processFrontFinalPrice()

    sales_quote_address_collect_totals_after

    • Mage_Sales_Model_Observer::restoreQuoteCustomerGroupId()

    sales_quote_collect_totals_after

    • Mage_Sales_Model_Observer::setQuoteCanApplyMsrp()

    sales_quote_save_before

    • Mage_Persistent_Model_Observer::setQuotePersistentData()

    sales_quote_save_after

    • Mage_Checkout_Model_Observer::salesQuoteSaveAfter()
    • Mage_Log_Model_Visitor::bindQuoteCreate()

    sales_quote_item_save_before

    • Mage_Reports_Model_Event_Observer::checkoutCartAddProduct()

    checkout_cart_add_product_complete

    • Mage_Wishlist_Model_Observer::processAddToCart()

    controller_action_postdispatch

    • Mage_Log_Model_Visitor::saveByRequest()

    controller_front_send_response_after

    • Mage_Persistent_Model_Observer_Session::synchronizePersistentInfo()
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two columns (buying prince and sale price) and I want to calculate
I want to calculate the angle between two vectors a and b. Lets assume
I want to calculate the difference between two times, one of which is the
I have two tables like that: Products(productID,categoryID,price) MarginOfProfit(categoryID,rate) Anytime we want to change prices
I want to calculate each row's total price by multiplying individual row's inputs and
I want to calculate some trends based on the values I get in my
I want to calculate distance in my custom repository class. The problem is that
I want to calculate the smallest integer with exactly k bits set, that is
We want to calculate the value of an integral in linear plot. For a
I want to calculate a new date by adding a number of months to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.