Skip to main content
12 events
when toggle format what by license comment
Aug 22, 2019 at 12:42 comment added Jaimin Sutariya @zus, you will require to use $order->getAllItems() in a froeach loop to get each item object and then you can get product details by $item->getSku(), etc.
Aug 22, 2019 at 12:39 comment added zus @JaiminSutariya Shall i view what are all details available, like getSku(), getName(), i mean how can i view all list?
Aug 22, 2019 at 12:30 comment added Jaimin Sutariya @zus, if you are using sales_order_pace_after then you can easily get complete order by $event->getOrder() and then you can get any details from the order.
Aug 22, 2019 at 11:53 comment added zus @JaiminSutariya I am using sales_order_place_after, how to know what are the details enclosed like name, price, qty_ordered, etc
Feb 20, 2017 at 15:04 comment added 3CE Oh my gooooooood! It works. Could you let me know how to work it? is it okay to overwrite the variable name? I'm really seeking the method to bind the customer id tho! Thank you so much!!
Feb 20, 2017 at 15:02 vote accept 3CE
Feb 20, 2017 at 14:14 comment added Jaimin Sutariya Try with updated code
Feb 20, 2017 at 14:13 history edited Jaimin Sutariya CC BY-SA 3.0
added 580 characters in body
Feb 20, 2017 at 14:11 comment added 3CE This error comes out
Feb 20, 2017 at 14:11 comment added 3CE Fatal error: Call to a member function getId() on a non-object in app/code/local/Kbethos/CustomerGrouped/Model/Observer.php on line 10
Feb 20, 2017 at 14:11 comment added 3CE When i add your code,
Feb 18, 2017 at 4:00 history answered Jaimin Sutariya CC BY-SA 3.0