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 8250779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:00:53+00:00 2026-06-08T00:00:53+00:00

Whenever you load the cart page in Magento, the following code is run $cart->init();

  • 0

Whenever you load the cart page in Magento, the following code is run

$cart->init();
$cart->save(); 

One side effect of this is that the prices for any items in the cart are updated if the price of the product has been updated. This actually updates the entry in sales_flat_quote_item. I’m trying to track down where in code the price is updated on each quote item, and where each quote item is saved.

I know the myrid locations it could be set. I’m hoping someone knows where it actually is set. Magento 1.7x branch specifically, although info from all versions is welcome.

  • 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-08T00:00:54+00:00Added an answer on June 8, 2026 at 12:00 am

    From a high level, the code that starts the whole process are lines 464 and 465 of Mage_Checkout_Model_Cart :

     $this->getQuote()->collectTotals();
     $this->getQuote()->save();
    

    The new product price is being set against the quote in Mage_Sales_Model_Quote_Address_Total_Subtotal in the _initItem method. You will see $item->setPrice in the the if / else statement starting at line 104

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the following event in JavaScript for page load.whenever the page is closed
I want some personally developed JavaScript code to execute whenever I load a page
Whenever I load a page in a UIWebView i get this error in the
Whenever I load ONLY the 1.3 or 1.4 library on an html page im
I got a problem with my character encoding. Whenever I load a page in
I am using TinyMCE ( http://tinymce.moxiecode.com/ ) in a .NET page. Whenever I load
my models in CI are set up so that they load sub-models whenever they
Hey, I'm wondering why class load breakpoint is not working in this case. Whenever
I have web page having 1000's of images and values. Whenever I load the
Whenever I load a blog post onto the page with Ajax, I set the

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.