Timeline for magento programatically create order with php code
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 26, 2018 at 10:37 | comment | added | TheKitMurkit | How can you possibly have $order in this line "$quote->setCurrency($order->AdjustmentAmount->currencyID);" When there is no order yet? | |
Jul 5, 2018 at 5:32 | comment | added | SNS | got error message Please specify a shipping method and i also enabled flat shipping method | |
Aug 3, 2017 at 19:49 | comment | added | Vishal Thakur | If you got this error - "PHP Fatal error: Call to a member function getRealOrderId() on a non-object in", then you need to write " $service->submit(); " instead of " $service->submitAll(); ".---@user1799722 | |
Dec 1, 2016 at 13:01 | comment | added | Kazim Noorani | Hello, Where to add this above whole code? @AkhileshPatel | |
Nov 4, 2016 at 9:44 | history | edited | Qaisar Satti | CC BY-SA 3.0 |
corrected errors
|
Oct 27, 2015 at 10:29 | comment | added | Akhilesh Patel | ohhh yes, sorry it was my mistake. I was trying the same :) | |
Oct 27, 2015 at 10:19 | comment | added | user1799722 | one speeling error was in for loop i fixed that and working now | |
Oct 27, 2015 at 10:19 | vote | accept | user1799722 | ||
Oct 27, 2015 at 10:19 | review | Suggested edits | |||
Oct 27, 2015 at 11:02 | |||||
Oct 27, 2015 at 10:12 | comment | added | user1799722 | also one thing i see $productids where are they add to cart i can not see code for that | |
Oct 27, 2015 at 10:01 | comment | added | user1799722 | ok i enabled that flat rate now it give error "PHP Fatal error: Call to a member function getRealOrderId() on a non-object in", also no order created in admin | |
Oct 27, 2015 at 9:54 | comment | added | Akhilesh Patel | ok can you check your "flatrate_flatrate" shipping method is enable or not? | |
Oct 27, 2015 at 9:45 | comment | added | user1799722 | ok i got message : Please specify a shipping method. | |
Oct 27, 2015 at 9:29 | comment | added | Akhilesh Patel | I have updated my answer with try catch, see if you can get any exception | |
Oct 27, 2015 at 9:28 | history | edited | Akhilesh Patel | CC BY-SA 3.0 |
added 196 characters in body
|
Oct 27, 2015 at 8:50 | comment | added | user1799722 | these lines gives error : // Create Order From Quote $service = Mage::getModel('sales/service_quote', $quote); $service->submitAll(); $increment_id = $service->getOrder()->getRealOrderId(); // Resource Clean-Up $quote = $customer = $service = null; // Finished echo $increment_id; | |
Oct 27, 2015 at 7:34 | comment | added | Akhilesh Patel | did you try to debug after which step you are getting internal server error? I mean after customer save or after adding product to cart or after try to place an order? At which step you are getting this error? | |
Oct 27, 2015 at 4:46 | comment | added | scrowler | Some explanation around changes you've made to the original code would be useful here | |
Oct 27, 2015 at 4:43 | history | answered | Akhilesh Patel | CC BY-SA 3.0 |