Timeline for Magento 2 get Orders from last 2 Days
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 7, 2020 at 13:21 | comment | added | Jafar Pinjar | @AbhishekPanchal, yes, I have created a new ticket for that, pls update me | |
Apr 7, 2020 at 13:11 | comment | added | Abhishek Panchal | @jafarpinjar can you please open new question and post your entire code over there? | |
Apr 7, 2020 at 12:19 | comment | added | Jafar Pinjar | @AbhishekPanchal, I used below code to get customer email, foreach ($orderData as $orderItem) { $orderItem->customerEmail(); }. which is not returning | |
Nov 30, 2017 at 18:08 | comment | added | Abhishek Panchal | Glad to know that you get 2 solutions. Happy Coding :) | |
Nov 30, 2017 at 18:05 | comment | added | Blackpanther0001 | thanks ! looks like \Magento\Framework\Stdlib\DateTime\TimezoneInterface also works: Using $date as TimezoneInterface Object. $customDate = $date->date()->modify("-2 days")->format('Y-m-d H:i:s') then using it in the filter ->addFilter('created_at', $customDate ,'gteq') also works | |
Nov 30, 2017 at 17:58 | vote | accept | Blackpanther0001 | ||
Nov 30, 2017 at 17:40 | history | answered | Abhishek Panchal | CC BY-SA 3.0 |