Where can i find the code for creating a quote while adding product to cart?
When a product is added to the cart this is called
Mage_Checkout_Model_Cart::addProduct(). this calls at one point
This one calls
This is where it all happens.
If the quote does not exist, it is created.