Timeline for How to edit or update the ordered item data in magento 2
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 19, 2019 at 6:18 | vote | accept | Ramya | ||
| Jul 19, 2019 at 6:04 | history | edited | Ranganathan | CC BY-SA 4.0 | added 297 characters in body |
| Jul 19, 2019 at 5:51 | history | edited | Ranganathan | CC BY-SA 4.0 | added 248 characters in body |
| Jul 19, 2019 at 5:19 | comment | added | Ramya | Let us continue this discussion in chat. | |
| Jul 19, 2019 at 5:18 | comment | added | Ranganathan | What is the error you got? | |
| Jul 19, 2019 at 5:18 | comment | added | Ramya | But I didn't get the data on $orderItem | |
| Jul 19, 2019 at 5:18 | comment | added | Ranganathan | Do not Use update, create related logic in view files | |
| Jul 19, 2019 at 5:17 | comment | added | Ranganathan | Yes you can use objectmanager here only...... | |
| Jul 19, 2019 at 5:16 | comment | added | Ramya | For my testing purpose, I'm writing the code on magento root folder | |
| Jul 19, 2019 at 5:15 | comment | added | Ranganathan | Where do you want to implement this code? | |
| Jul 19, 2019 at 5:14 | comment | added | Ramya | Can I use the order item collection factory via object manager. $orderItem = $objectManager->create('\Magento\Sales\Model\ResourceModel\Order\Item\CollectionFactory')->addFieldToFilter( 'item_id', $orderItemId )->getFirstItem(); | |
| Jul 19, 2019 at 5:04 | comment | added | Ramya | Thanks Ranganathan. Will try this method and let you know. | |
| Jul 19, 2019 at 4:59 | history | answered | Ranganathan | CC BY-SA 4.0 |