{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/18808","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/18808/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/18808/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/18808/events","html_url":"https://github.com/magento/magento2/pull/18808","id":373924550,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NzQwOTUz","number":18808,"title":"fixed Quote Item Prices are NULL in cart related events. #18685","user":{"login":"ashutoshwebkul","id":35421797,"node_id":"MDQ6VXNlcjM1NDIxNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/35421797?v=4","gravatar_id":"","url":"https://api.github.com/users/ashutoshwebkul","html_url":"https://github.com/ashutoshwebkul","followers_url":"https://api.github.com/users/ashutoshwebkul/followers","following_url":"https://api.github.com/users/ashutoshwebkul/following{/other_user}","gists_url":"https://api.github.com/users/ashutoshwebkul/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutoshwebkul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutoshwebkul/subscriptions","organizations_url":"https://api.github.com/users/ashutoshwebkul/orgs","repos_url":"https://api.github.com/users/ashutoshwebkul/repos","events_url":"https://api.github.com/users/ashutoshwebkul/events{/privacy}","received_events_url":"https://api.github.com/users/ashutoshwebkul/received_events","type":"User","site_admin":false},"labels":[{"id":947887501,"node_id":"MDU6TGFiZWw5NDc4ODc1MDE=","url":"https://api.github.com/repos/magento/magento2/labels/Component:%20Quote","name":"Component: Quote","color":"7fb703","default":false},{"id":703232382,"node_id":"MDU6TGFiZWw3MDMyMzIzODI=","url":"https://api.github.com/repos/magento/magento2/labels/Release%20Line:%202.2","name":"Release Line: 2.2","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-25T12:34:08Z","updated_at":"2018-10-25T12:36:34Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/magento/magento2/pulls/18808","html_url":"https://github.com/magento/magento2/pull/18808","diff_url":"https://github.com/magento/magento2/pull/18808.diff","patch_url":"https://github.com/magento/magento2/pull/18808.patch"},"body":"<!---\r\n    Thank you for contributing to Magento.\r\n    To help us process this pull request we recommend that you add the following information:\r\n     - Summary of the pull request,\r\n     - Issue(s) related to the changes made,\r\n     - Manual testing scenarios\r\n    Fields marked with (*) are required. Please don't remove the template.\r\n-->\r\n\r\n<!--- Please provide a general summary of the Pull Request in the Title above -->\r\n\r\n### Description (*)\r\nbefore these two observers checkout_cart_product_add_after, checkout_cart_product_update_after cart item is not saved into the database the object is only created and in the object price was not set but custom price was set so there was no issue of custom price, we could have added the price in the item from two files:\r\napp/code/Magento/Quote/Model/Quote/Item/Processor.php and\r\napp/code/Magento/Quote/Model/Quote.php\r\nI have added the price in this file app/code/Magento/Quote/Model/Quote/Item/Processor.php\r\n\r\n### Fixed Issues (if relevant)\r\n<!---\r\n    If relevant, please provide a list of fixed issues in the format magento/magento2#<issue_number>.\r\n    There could be 1 or more issues linked here and it will help us find some more information about the reasoning behind this change.\r\n-->\r\n1. magento/magento2#18685: Quote Item Prices are NULL in cart related events\r\n\r\n### Manual testing scenarios (*)\r\n<!---\r\n    Please provide a set of unambiguous steps to test the proposed code change.\r\n    Giving us manual testing scenarios will help with the processing and validation process.\r\n-->\r\n1. create a module which has observers for these two events checkout_cart_product_add_after, checkout_cart_product_update_after cart\r\n2. now in the observer try to get the added item price by calling $observer->getEvent()->getQuoteItem()->getPrice()\r\n\r\n### Contribution checklist (*)\r\n - [ ] Pull request has a meaningful description of its purpose\r\n - [ ] All commits are accompanied by meaningful commit messages\r\n - [ ] All new or changed code is covered with unit/integration tests (if applicable)\r\n - [ ] All automated tests passed successfully (all builds on Travis CI are green)\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/433033536","html_url":"https://github.com/magento/magento2/pull/18808#issuecomment-433033536","issue_url":"https://api.github.com/repos/magento/magento2/issues/18808","id":433033536,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzAzMzUzNg==","user":{"login":"ashutoshwebkul","id":35421797,"node_id":"MDQ6VXNlcjM1NDIxNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/35421797?v=4","gravatar_id":"","url":"https://api.github.com/users/ashutoshwebkul","html_url":"https://github.com/ashutoshwebkul","followers_url":"https://api.github.com/users/ashutoshwebkul/followers","following_url":"https://api.github.com/users/ashutoshwebkul/following{/other_user}","gists_url":"https://api.github.com/users/ashutoshwebkul/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutoshwebkul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutoshwebkul/subscriptions","organizations_url":"https://api.github.com/users/ashutoshwebkul/orgs","repos_url":"https://api.github.com/users/ashutoshwebkul/repos","events_url":"https://api.github.com/users/ashutoshwebkul/events{/privacy}","received_events_url":"https://api.github.com/users/ashutoshwebkul/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T12:36:34Z","updated_at":"2018-10-25T12:36:34Z","author_association":"NONE","body":"#squashtoberfest"}}
{"actor":{"display_login":"ashutoshwebkul"}}