{"action":"opened","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/12024","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/12024/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/12024/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/12024/events","html_url":"https://github.com/PrestaShop/PrestaShop/issues/12024","id":395886809,"node_id":"MDU6SXNzdWUzOTU4ODY4MDk=","number":12024,"title":"Multiple free shipping vouchers give order total error","user":{"login":"Prestaworks","id":2902272,"node_id":"MDQ6VXNlcjI5MDIyNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2902272?v=4","gravatar_id":"","url":"https://api.github.com/users/Prestaworks","html_url":"https://github.com/Prestaworks","followers_url":"https://api.github.com/users/Prestaworks/followers","following_url":"https://api.github.com/users/Prestaworks/following{/other_user}","gists_url":"https://api.github.com/users/Prestaworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Prestaworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prestaworks/subscriptions","organizations_url":"https://api.github.com/users/Prestaworks/orgs","repos_url":"https://api.github.com/users/Prestaworks/repos","events_url":"https://api.github.com/users/Prestaworks/events{/privacy}","received_events_url":"https://api.github.com/users/Prestaworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-04T11:00:54Z","updated_at":"2019-01-04T11:00:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\n****************************\r\nDO NOT disclose security issues here, contact security@prestashop.com instead!\r\n****************************\r\n-->\r\n\r\n**Describe the bug**\r\nin cart class\r\npublic function getOrderTotal\r\nwhen using the flag Cart::ONLY_DISCOUNTS\r\nthe returned value will sum up the free shipping vouchers two times.\r\nSo if a customer has two free shipping vouchers and use both at the same time, the value returned from this function will be the shipping cost x 2.\r\n\r\n**To Reproduce**\r\nCreate two vouchers for free shipping.\r\nAdd both vouchers to the cart.\r\ncheck the return value of the call to this function on the cart.\r\n\r\n**Screenshots**\r\n\r\n\r\n**Additionnal information**\r\nPrestaShop version: 1.7.4.4\r\nPHP version: 5.6\r\n"}}
{"actor":{"display_login":"Prestaworks"}}