{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4572","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4572/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4572/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4572/events","html_url":"https://github.com/magento/magento2/issues/4572","id":155716478,"number":4572,"title":"get price with and without tax on list.phtml","user":{"login":"klarlichter","id":1537343,"avatar_url":"https://avatars.githubusercontent.com/u/1537343?v=3","gravatar_id":"","url":"https://api.github.com/users/klarlichter","html_url":"https://github.com/klarlichter","followers_url":"https://api.github.com/users/klarlichter/followers","following_url":"https://api.github.com/users/klarlichter/following{/other_user}","gists_url":"https://api.github.com/users/klarlichter/gists{/gist_id}","starred_url":"https://api.github.com/users/klarlichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarlichter/subscriptions","organizations_url":"https://api.github.com/users/klarlichter/orgs","repos_url":"https://api.github.com/users/klarlichter/repos","events_url":"https://api.github.com/users/klarlichter/events{/privacy}","received_events_url":"https://api.github.com/users/klarlichter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/CS","name":"CS","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"mikeweis","id":1204878,"avatar_url":"https://avatars.githubusercontent.com/u/1204878?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeweis","html_url":"https://github.com/mikeweis","followers_url":"https://api.github.com/users/mikeweis/followers","following_url":"https://api.github.com/users/mikeweis/following{/other_user}","gists_url":"https://api.github.com/users/mikeweis/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeweis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeweis/subscriptions","organizations_url":"https://api.github.com/users/mikeweis/orgs","repos_url":"https://api.github.com/users/mikeweis/repos","events_url":"https://api.github.com/users/mikeweis/events{/privacy}","received_events_url":"https://api.github.com/users/mikeweis/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-05-19T11:40:41Z","updated_at":"2016-05-19T17:01:52Z","closed_at":null,"body":"Hello,\r\n\r\nhow we can get the price for simple and configurable product on list.phtml? If we try:\r\n\r\n`$block->getProductPrice($_product)`\r\n\r\nWe get the correct price but how we get the price with and without tax from a simple and configurable product? Which 2 line codes we need to use?\r\n\r\nlike:\r\n\r\n```\r\n$productPriceWithTax = samplecode ;\r\n$productPriceWithOutTax = samplecode ;\r\n```\r\n\r\nHope someone can help... :("},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/220388146","html_url":"https://github.com/magento/magento2/issues/4572#issuecomment-220388146","issue_url":"https://api.github.com/repos/magento/magento2/issues/4572","id":220388146,"user":{"login":"klarlichter","id":1537343,"avatar_url":"https://avatars.githubusercontent.com/u/1537343?v=3","gravatar_id":"","url":"https://api.github.com/users/klarlichter","html_url":"https://github.com/klarlichter","followers_url":"https://api.github.com/users/klarlichter/followers","following_url":"https://api.github.com/users/klarlichter/following{/other_user}","gists_url":"https://api.github.com/users/klarlichter/gists{/gist_id}","starred_url":"https://api.github.com/users/klarlichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarlichter/subscriptions","organizations_url":"https://api.github.com/users/klarlichter/orgs","repos_url":"https://api.github.com/users/klarlichter/repos","events_url":"https://api.github.com/users/klarlichter/events{/privacy}","received_events_url":"https://api.github.com/users/klarlichter/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T17:01:52Z","updated_at":"2016-05-19T17:01:52Z","body":"Hello,\r\nOK. For example, but thats not working because I cant using:\r\n$_product->getPriceInfo()->getPrice('final_price')->getAmount()\r\n\r\nExample code:\r\n```\r\n$priceWithoutTaxNotRound = $_product->getPriceInfo()->getPrice('final_price')->getAmount()->getBaseAmount();\r\n$priceWithTaxNotRound = $_product->getPriceInfo()->getPrice('final_price')->getAmount();\r\n$productTax = ($priceWithoutTaxRound-$priceWithTaxNotRound);\r\necho $productTax;\r\n```\r\n\r\nHow can I put my code working and into block? Could you subscribe for beginners and very easy that o can do that step by step please?"}}