{"action":"created","comment":{"url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/comments/34679383","id":34679383,"diff_hunk":"@@ -433,18 +453,26 @@ protected function _throwError($message, $log = null, $line = 'NO LINE', $custom\n      *\n      * @return bool\n      */\n-    protected function _generateVolumeWeight()\n+    protected function _generateVolumeWeight($request)\n     {\n         $pesoCubicoTotal = 0;\n \n         $items = Mage::getModel('checkout/cart')->getQuote()->getAllVisibleItems();\n \n+\tif (count($items) == 0) {\n+            $items = Mage::getModel('checkout/cart')->getQuote()->getAllVisibleItems();\n+        }\n+","path":"app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php","position":66,"original_position":66,"commit_id":"396d259cccb67be767eedaf5626e6c3497558059","original_commit_id":"396d259cccb67be767eedaf5626e6c3497558059","user":{"login":"jarjar123","id":3688798,"avatar_url":"https://avatars.githubusercontent.com/u/3688798?v=3","gravatar_id":"","url":"https://api.github.com/users/jarjar123","html_url":"https://github.com/jarjar123","followers_url":"https://api.github.com/users/jarjar123/followers","following_url":"https://api.github.com/users/jarjar123/following{/other_user}","gists_url":"https://api.github.com/users/jarjar123/gists{/gist_id}","starred_url":"https://api.github.com/users/jarjar123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarjar123/subscriptions","organizations_url":"https://api.github.com/users/jarjar123/orgs","repos_url":"https://api.github.com/users/jarjar123/repos","events_url":"https://api.github.com/users/jarjar123/events{/privacy}","received_events_url":"https://api.github.com/users/jarjar123/received_events","type":"User","site_admin":false},"body":"Não há necessidade deste trecho. Seu fork deve estar desatualizado. Dá uma conferida @aandrade1234 ","created_at":"2015-07-15T13:49:21Z","updated_at":"2015-07-15T13:49:21Z","html_url":"https://github.com/pedro-teixeira/correios/pull/94#discussion_r34679383","pull_request_url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/comments/34679383"},"html":{"href":"https://github.com/pedro-teixeira/correios/pull/94#discussion_r34679383"},"pull_request":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94","id":39950063,"html_url":"https://github.com/pedro-teixeira/correios/pull/94","diff_url":"https://github.com/pedro-teixeira/correios/pull/94.diff","patch_url":"https://github.com/pedro-teixeira/correios/pull/94.patch","issue_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/94","number":94,"state":"open","locked":false,"title":"Fix para produtos configuráveis","user":{"login":"aandrade1234","id":2529546,"avatar_url":"https://avatars.githubusercontent.com/u/2529546?v=3","gravatar_id":"","url":"https://api.github.com/users/aandrade1234","html_url":"https://github.com/aandrade1234","followers_url":"https://api.github.com/users/aandrade1234/followers","following_url":"https://api.github.com/users/aandrade1234/following{/other_user}","gists_url":"https://api.github.com/users/aandrade1234/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrade1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrade1234/subscriptions","organizations_url":"https://api.github.com/users/aandrade1234/orgs","repos_url":"https://api.github.com/users/aandrade1234/repos","events_url":"https://api.github.com/users/aandrade1234/events{/privacy}","received_events_url":"https://api.github.com/users/aandrade1234/received_events","type":"User","site_admin":false},"body":"Trata os casos onde que cada opção do produto possui peso e dimensões diferentes.","created_at":"2015-07-14T19:01:34Z","updated_at":"2015-07-15T13:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e16c6dff4fd12de2e5c51000f78a86267c9c087","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94/commits","review_comments_url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94/comments","review_comment_url":"https://api.github.com/repos/pedro-teixeira/correios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/94/comments","statuses_url":"https://api.github.com/repos/pedro-teixeira/correios/statuses/396d259cccb67be767eedaf5626e6c3497558059","head":{"label":"aandrade1234:master","ref":"master","sha":"396d259cccb67be767eedaf5626e6c3497558059","user":{"login":"aandrade1234","id":2529546,"avatar_url":"https://avatars.githubusercontent.com/u/2529546?v=3","gravatar_id":"","url":"https://api.github.com/users/aandrade1234","html_url":"https://github.com/aandrade1234","followers_url":"https://api.github.com/users/aandrade1234/followers","following_url":"https://api.github.com/users/aandrade1234/following{/other_user}","gists_url":"https://api.github.com/users/aandrade1234/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrade1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrade1234/subscriptions","organizations_url":"https://api.github.com/users/aandrade1234/orgs","repos_url":"https://api.github.com/users/aandrade1234/repos","events_url":"https://api.github.com/users/aandrade1234/events{/privacy}","received_events_url":"https://api.github.com/users/aandrade1234/received_events","type":"User","site_admin":false},"repo":{"id":39093652,"name":"correios","full_name":"aandrade1234/correios","owner":{"login":"aandrade1234","id":2529546,"avatar_url":"https://avatars.githubusercontent.com/u/2529546?v=3","gravatar_id":"","url":"https://api.github.com/users/aandrade1234","html_url":"https://github.com/aandrade1234","followers_url":"https://api.github.com/users/aandrade1234/followers","following_url":"https://api.github.com/users/aandrade1234/following{/other_user}","gists_url":"https://api.github.com/users/aandrade1234/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrade1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrade1234/subscriptions","organizations_url":"https://api.github.com/users/aandrade1234/orgs","repos_url":"https://api.github.com/users/aandrade1234/repos","events_url":"https://api.github.com/users/aandrade1234/events{/privacy}","received_events_url":"https://api.github.com/users/aandrade1234/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aandrade1234/correios","description":"Módulo de frete para Magento com tracking","fork":true,"url":"https://api.github.com/repos/aandrade1234/correios","forks_url":"https://api.github.com/repos/aandrade1234/correios/forks","keys_url":"https://api.github.com/repos/aandrade1234/correios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aandrade1234/correios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aandrade1234/correios/teams","hooks_url":"https://api.github.com/repos/aandrade1234/correios/hooks","issue_events_url":"https://api.github.com/repos/aandrade1234/correios/issues/events{/number}","events_url":"https://api.github.com/repos/aandrade1234/correios/events","assignees_url":"https://api.github.com/repos/aandrade1234/correios/assignees{/user}","branches_url":"https://api.github.com/repos/aandrade1234/correios/branches{/branch}","tags_url":"https://api.github.com/repos/aandrade1234/correios/tags","blobs_url":"https://api.github.com/repos/aandrade1234/correios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aandrade1234/correios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aandrade1234/correios/git/refs{/sha}","trees_url":"https://api.github.com/repos/aandrade1234/correios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aandrade1234/correios/statuses/{sha}","languages_url":"https://api.github.com/repos/aandrade1234/correios/languages","stargazers_url":"https://api.github.com/repos/aandrade1234/correios/stargazers","contributors_url":"https://api.github.com/repos/aandrade1234/correios/contributors","subscribers_url":"https://api.github.com/repos/aandrade1234/correios/subscribers","subscription_url":"https://api.github.com/repos/aandrade1234/correios/subscription","commits_url":"https://api.github.com/repos/aandrade1234/correios/commits{/sha}","git_commits_url":"https://api.github.com/repos/aandrade1234/correios/git/commits{/sha}","comments_url":"https://api.github.com/repos/aandrade1234/correios/comments{/number}","issue_comment_url":"https://api.github.com/repos/aandrade1234/correios/issues/comments{/number}","contents_url":"https://api.github.com/repos/aandrade1234/correios/contents/{+path}","compare_url":"https://api.github.com/repos/aandrade1234/correios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aandrade1234/correios/merges","archive_url":"https://api.github.com/repos/aandrade1234/correios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aandrade1234/correios/downloads","issues_url":"https://api.github.com/repos/aandrade1234/correios/issues{/number}","pulls_url":"https://api.github.com/repos/aandrade1234/correios/pulls{/number}","milestones_url":"https://api.github.com/repos/aandrade1234/correios/milestones{/number}","notifications_url":"https://api.github.com/repos/aandrade1234/correios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aandrade1234/correios/labels{/name}","releases_url":"https://api.github.com/repos/aandrade1234/correios/releases{/id}","created_at":"2015-07-14T18:42:14Z","updated_at":"2015-07-14T18:42:15Z","pushed_at":"2015-07-14T19:00:34Z","git_url":"git://github.com/aandrade1234/correios.git","ssh_url":"git@github.com:aandrade1234/correios.git","clone_url":"https://github.com/aandrade1234/correios.git","svn_url":"https://github.com/aandrade1234/correios","homepage":"https://pedroteixeira.io","size":644,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pedro-teixeira:master","ref":"master","sha":"d0087d9d09d5009f04bf868bd34fd38cfe9d11c8","user":{"login":"pedro-teixeira","id":1923771,"avatar_url":"https://avatars.githubusercontent.com/u/1923771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-teixeira","html_url":"https://github.com/pedro-teixeira","followers_url":"https://api.github.com/users/pedro-teixeira/followers","following_url":"https://api.github.com/users/pedro-teixeira/following{/other_user}","gists_url":"https://api.github.com/users/pedro-teixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-teixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-teixeira/subscriptions","organizations_url":"https://api.github.com/users/pedro-teixeira/orgs","repos_url":"https://api.github.com/users/pedro-teixeira/repos","events_url":"https://api.github.com/users/pedro-teixeira/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-teixeira/received_events","type":"User","site_admin":false},"repo":{"id":17088982,"name":"correios","full_name":"pedro-teixeira/correios","owner":{"login":"pedro-teixeira","id":1923771,"avatar_url":"https://avatars.githubusercontent.com/u/1923771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-teixeira","html_url":"https://github.com/pedro-teixeira","followers_url":"https://api.github.com/users/pedro-teixeira/followers","following_url":"https://api.github.com/users/pedro-teixeira/following{/other_user}","gists_url":"https://api.github.com/users/pedro-teixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-teixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-teixeira/subscriptions","organizations_url":"https://api.github.com/users/pedro-teixeira/orgs","repos_url":"https://api.github.com/users/pedro-teixeira/repos","events_url":"https://api.github.com/users/pedro-teixeira/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-teixeira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedro-teixeira/correios","description":"Módulo de frete para Magento com tracking","fork":false,"url":"https://api.github.com/repos/pedro-teixeira/correios","forks_url":"https://api.github.com/repos/pedro-teixeira/correios/forks","keys_url":"https://api.github.com/repos/pedro-teixeira/correios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedro-teixeira/correios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedro-teixeira/correios/teams","hooks_url":"https://api.github.com/repos/pedro-teixeira/correios/hooks","issue_events_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/events{/number}","events_url":"https://api.github.com/repos/pedro-teixeira/correios/events","assignees_url":"https://api.github.com/repos/pedro-teixeira/correios/assignees{/user}","branches_url":"https://api.github.com/repos/pedro-teixeira/correios/branches{/branch}","tags_url":"https://api.github.com/repos/pedro-teixeira/correios/tags","blobs_url":"https://api.github.com/repos/pedro-teixeira/correios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedro-teixeira/correios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedro-teixeira/correios/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedro-teixeira/correios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedro-teixeira/correios/statuses/{sha}","languages_url":"https://api.github.com/repos/pedro-teixeira/correios/languages","stargazers_url":"https://api.github.com/repos/pedro-teixeira/correios/stargazers","contributors_url":"https://api.github.com/repos/pedro-teixeira/correios/contributors","subscribers_url":"https://api.github.com/repos/pedro-teixeira/correios/subscribers","subscription_url":"https://api.github.com/repos/pedro-teixeira/correios/subscription","commits_url":"https://api.github.com/repos/pedro-teixeira/correios/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedro-teixeira/correios/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedro-teixeira/correios/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedro-teixeira/correios/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedro-teixeira/correios/contents/{+path}","compare_url":"https://api.github.com/repos/pedro-teixeira/correios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedro-teixeira/correios/merges","archive_url":"https://api.github.com/repos/pedro-teixeira/correios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedro-teixeira/correios/downloads","issues_url":"https://api.github.com/repos/pedro-teixeira/correios/issues{/number}","pulls_url":"https://api.github.com/repos/pedro-teixeira/correios/pulls{/number}","milestones_url":"https://api.github.com/repos/pedro-teixeira/correios/milestones{/number}","notifications_url":"https://api.github.com/repos/pedro-teixeira/correios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedro-teixeira/correios/labels{/name}","releases_url":"https://api.github.com/repos/pedro-teixeira/correios/releases{/id}","created_at":"2014-02-22T16:40:16Z","updated_at":"2015-06-21T15:31:51Z","pushed_at":"2015-07-15T03:40:32Z","git_url":"git://github.com/pedro-teixeira/correios.git","ssh_url":"git@github.com:pedro-teixeira/correios.git","clone_url":"https://github.com/pedro-teixeira/correios.git","svn_url":"https://github.com/pedro-teixeira/correios","homepage":"https://pedroteixeira.io","size":644,"stargazers_count":30,"watchers_count":30,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":18,"forks":26,"open_issues":18,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94"},"html":{"href":"https://github.com/pedro-teixeira/correios/pull/94"},"issue":{"href":"https://api.github.com/repos/pedro-teixeira/correios/issues/94"},"comments":{"href":"https://api.github.com/repos/pedro-teixeira/correios/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pedro-teixeira/correios/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/pedro-teixeira/correios/statuses/396d259cccb67be767eedaf5626e6c3497558059"}}}}