Timeline for Reorder via Code & Setting New Payment Method
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Feb 24, 2014 at 11:17 | answer | added | Sapnandu | timeline score: 0 | |
Nov 11, 2013 at 23:39 | vote | accept | RNickMcCandless | ||
Nov 11, 2013 at 23:39 | answer | added | RNickMcCandless | timeline score: 1 | |
Nov 8, 2013 at 9:56 | comment | added | Mark van der Sanden |
I think this doesn't work because you want to modify the quote before creating the order. I've done some investigation, but it takes too much time for now to write you a ready-to-go solution. You should look at Mage_Sales_Controller_Abstract::reorderAction() and realize that it's not the cart you want to modify but a specific quote. Then you could use Vinai's example at pastebin.com/8cft4d8v to create the order. Convert an order address to a quote address using Mage::getModel('sales/convert_order')->addressToQuoteAddress($orderAddress) . Hope this points you in the right direction.
|
|
Nov 8, 2013 at 2:10 | review | First posts | |||
Nov 8, 2013 at 6:17 | |||||
Nov 8, 2013 at 1:53 | history | asked | RNickMcCandless | CC BY-SA 3.0 |