Problem: in the cart is a product set together from selected options.
Now I want to edit one of those products.
Question: how do I get the same option values to the configure page? The page that has this path is checkout/cart/configure/id/1/
Where does Magento has to take the needed informations from?
PS. I use a Custom Theme!
Best Answer
The information is pulled from the quote object that is persisted in the database. The integer on the end of the checkout/cart/configure/id/123 is a reference to the quote item ID from the sales_flat_quote_item table.
In short, when you hit the configure page, it fetches the item and looks up the configuration option selections in order to pre-populate the form with them.
You could access this information via...
There's a method available to
Mage_Sales_Model_Quote_Item
calledgetBuyRequest
that returns the configured options.This is a good starting spot.