Can't get order object in sales_order_place_after observer method in multi-shippingCan we use Paypal Express...
How to visualize a Cayley graph in this style?
How would we write a misogynistic character without offending people?
How do I construct an nxn matrix?
How to add multiple differently colored borders around a node?
What is this waxed root vegetable?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
What can I substitute for soda pop in a sweet pork recipe?
Replacement ford fiesta radiator has extra hose
Did 5.25" floppies undergo a change in magnetic coating?
How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider
Is there a better way to make addon working on both blender 2.80 and 2.79?
What type of postprocessing gives the effect of people standing out
"Murder!" The knight said
When does inspiration across artforms become plagiarism
How to tighten battery clamp?
What is the difference between ashamed and shamed?
CBP Reminds Travelers to Allow 72 Hours for ESTA. Why?
Must a tritone substitution use a dominant seventh chord?
Is my plan for fixing my water heater leak bad?
What is a term for a function that when called repeatedly, has the same effect as calling once?
If nine coins are tossed, what is the probability that the number of heads is even?
Make me a metasequence
Why does the author believe that the central mass that gas cloud HCN-0.009-0.044 orbits is smaller than our solar system?
Find the next monthly expiration date
Can't get order object in sales_order_place_after observer method in multi-shipping
Can we use Paypal Express Checkout with “Ship to multiple address” optionCan't get order data in a sales_order_place_after model observerHow to get order id and other details of order for given event observerneed to add custom template file inside form container magento adminSimple Observer not firing on eventObserving a generic event, but ignoring most instancesconvert quote to order for guest usersEvent observer not working or event not firingMagento 1.9.3 Get Shipping Address From Observer With Event sales_order_place_afterHow to resolve Call to a member function getTelephone() for guest user login magento 1.9.1.0?
Hi guys i am working in magento 1.14 enterprise. i am trying to get order id after order place in multishipping checkout for that i am using this event
sales_order_place_after
i also tried this one as well
checkout_submit_all_after
but i am getting nothing in this event i want to get order id
here is my code for config
<sales_order_place_after>
<observers>
<Webkul_Marketplace_Model_Observer>
<type>singleton</type>
<class>Webkul_Marketplace_Model_Observer</class>
<method>afterPlaceOrder</method>
</Webkul_Marketplace_Model_Observer>
</observers>
</sales_order_place_after>
and this code for function
public function afterPlaceOrder($observer) {
$helper = Mage::helper('marketplace');
$lastOrderId = $observer->getOrder()->getId();
}
Its giving me error in this line Call to a member function getId() to null can anyone please tell me what i am missing why my observer is giving me nothing i have checked the same scenario in onepage and its working fine there.
magento-1.9 magento-enterprise
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Hi guys i am working in magento 1.14 enterprise. i am trying to get order id after order place in multishipping checkout for that i am using this event
sales_order_place_after
i also tried this one as well
checkout_submit_all_after
but i am getting nothing in this event i want to get order id
here is my code for config
<sales_order_place_after>
<observers>
<Webkul_Marketplace_Model_Observer>
<type>singleton</type>
<class>Webkul_Marketplace_Model_Observer</class>
<method>afterPlaceOrder</method>
</Webkul_Marketplace_Model_Observer>
</observers>
</sales_order_place_after>
and this code for function
public function afterPlaceOrder($observer) {
$helper = Mage::helper('marketplace');
$lastOrderId = $observer->getOrder()->getId();
}
Its giving me error in this line Call to a member function getId() to null can anyone please tell me what i am missing why my observer is giving me nothing i have checked the same scenario in onepage and its working fine there.
magento-1.9 magento-enterprise
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Hi guys i am working in magento 1.14 enterprise. i am trying to get order id after order place in multishipping checkout for that i am using this event
sales_order_place_after
i also tried this one as well
checkout_submit_all_after
but i am getting nothing in this event i want to get order id
here is my code for config
<sales_order_place_after>
<observers>
<Webkul_Marketplace_Model_Observer>
<type>singleton</type>
<class>Webkul_Marketplace_Model_Observer</class>
<method>afterPlaceOrder</method>
</Webkul_Marketplace_Model_Observer>
</observers>
</sales_order_place_after>
and this code for function
public function afterPlaceOrder($observer) {
$helper = Mage::helper('marketplace');
$lastOrderId = $observer->getOrder()->getId();
}
Its giving me error in this line Call to a member function getId() to null can anyone please tell me what i am missing why my observer is giving me nothing i have checked the same scenario in onepage and its working fine there.
magento-1.9 magento-enterprise
Hi guys i am working in magento 1.14 enterprise. i am trying to get order id after order place in multishipping checkout for that i am using this event
sales_order_place_after
i also tried this one as well
checkout_submit_all_after
but i am getting nothing in this event i want to get order id
here is my code for config
<sales_order_place_after>
<observers>
<Webkul_Marketplace_Model_Observer>
<type>singleton</type>
<class>Webkul_Marketplace_Model_Observer</class>
<method>afterPlaceOrder</method>
</Webkul_Marketplace_Model_Observer>
</observers>
</sales_order_place_after>
and this code for function
public function afterPlaceOrder($observer) {
$helper = Mage::helper('marketplace');
$lastOrderId = $observer->getOrder()->getId();
}
Its giving me error in this line Call to a member function getId() to null can anyone please tell me what i am missing why my observer is giving me nothing i have checked the same scenario in onepage and its working fine there.
magento-1.9 magento-enterprise
magento-1.9 magento-enterprise
edited Jul 9 '16 at 17:10
Amit Bera♦
58.9k1475174
58.9k1475174
asked Jul 9 '16 at 10:56
OBAIDOBAID
18014
18014
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I am Not sure about sales_order_place_after event.
But checkout_submit_all_after is always fire for multi shipping checkout .
But there are some logic change at parameters default checkout onepage and multi shipping checkout's checkout_submit_all_after event.
multi shipping checkout
For multi shipping checkout's ,you goto two parameters at observer.
First one is Orderids of your checkout by $observer->getEvent()->getOrders()
Second,one is quote object of your checkout by $observer->getEvent()->getQuote()
see:
Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));
Default onepage checkout
Getting 3 parameters:
Order object of current place order : by
$observer->getEvent()->getOrder()Quote object of current place order : by
$observer->getEvent()->getQuote()recurring profilesobject of current place order by
$observer->getEvent()->getRecurringProfiles()
See at:
Mage::dispatchEvent(
'checkout_submit_all_after',
array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)
);
So there are some logical changes are need at your observer
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f124985%2fcant-get-order-object-in-sales-order-place-after-observer-method-in-multi-shipp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am Not sure about sales_order_place_after event.
But checkout_submit_all_after is always fire for multi shipping checkout .
But there are some logic change at parameters default checkout onepage and multi shipping checkout's checkout_submit_all_after event.
multi shipping checkout
For multi shipping checkout's ,you goto two parameters at observer.
First one is Orderids of your checkout by $observer->getEvent()->getOrders()
Second,one is quote object of your checkout by $observer->getEvent()->getQuote()
see:
Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));
Default onepage checkout
Getting 3 parameters:
Order object of current place order : by
$observer->getEvent()->getOrder()Quote object of current place order : by
$observer->getEvent()->getQuote()recurring profilesobject of current place order by
$observer->getEvent()->getRecurringProfiles()
See at:
Mage::dispatchEvent(
'checkout_submit_all_after',
array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)
);
So there are some logical changes are need at your observer
add a comment |
I am Not sure about sales_order_place_after event.
But checkout_submit_all_after is always fire for multi shipping checkout .
But there are some logic change at parameters default checkout onepage and multi shipping checkout's checkout_submit_all_after event.
multi shipping checkout
For multi shipping checkout's ,you goto two parameters at observer.
First one is Orderids of your checkout by $observer->getEvent()->getOrders()
Second,one is quote object of your checkout by $observer->getEvent()->getQuote()
see:
Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));
Default onepage checkout
Getting 3 parameters:
Order object of current place order : by
$observer->getEvent()->getOrder()Quote object of current place order : by
$observer->getEvent()->getQuote()recurring profilesobject of current place order by
$observer->getEvent()->getRecurringProfiles()
See at:
Mage::dispatchEvent(
'checkout_submit_all_after',
array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)
);
So there are some logical changes are need at your observer
add a comment |
I am Not sure about sales_order_place_after event.
But checkout_submit_all_after is always fire for multi shipping checkout .
But there are some logic change at parameters default checkout onepage and multi shipping checkout's checkout_submit_all_after event.
multi shipping checkout
For multi shipping checkout's ,you goto two parameters at observer.
First one is Orderids of your checkout by $observer->getEvent()->getOrders()
Second,one is quote object of your checkout by $observer->getEvent()->getQuote()
see:
Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));
Default onepage checkout
Getting 3 parameters:
Order object of current place order : by
$observer->getEvent()->getOrder()Quote object of current place order : by
$observer->getEvent()->getQuote()recurring profilesobject of current place order by
$observer->getEvent()->getRecurringProfiles()
See at:
Mage::dispatchEvent(
'checkout_submit_all_after',
array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)
);
So there are some logical changes are need at your observer
I am Not sure about sales_order_place_after event.
But checkout_submit_all_after is always fire for multi shipping checkout .
But there are some logic change at parameters default checkout onepage and multi shipping checkout's checkout_submit_all_after event.
multi shipping checkout
For multi shipping checkout's ,you goto two parameters at observer.
First one is Orderids of your checkout by $observer->getEvent()->getOrders()
Second,one is quote object of your checkout by $observer->getEvent()->getQuote()
see:
Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));
Default onepage checkout
Getting 3 parameters:
Order object of current place order : by
$observer->getEvent()->getOrder()Quote object of current place order : by
$observer->getEvent()->getQuote()recurring profilesobject of current place order by
$observer->getEvent()->getRecurringProfiles()
See at:
Mage::dispatchEvent(
'checkout_submit_all_after',
array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)
);
So there are some logical changes are need at your observer
answered Jul 9 '16 at 18:46
Amit Bera♦Amit Bera
58.9k1475174
58.9k1475174
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f124985%2fcant-get-order-object-in-sales-order-place-after-observer-method-in-multi-shipp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown