{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3270","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3270/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3270/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3270/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3270","id":62390847,"number":3270,"title":"Wrong price_id gets added to cart using multiple [purchase_link] shortcodes for same product","user":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Has%20PR","name":"Has PR","color":"009800"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Needs%20Testing","name":"Needs Testing","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/94","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/milestones/2.3.3","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/94/labels","id":992114,"number":94,"title":"2.3.3","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":4,"state":"open","created_at":"2015-02-23T22:26:21Z","updated_at":"2015-03-18T16:30:47Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-17T13:07:05Z","updated_at":"2015-03-18T17:01:01Z","closed_at":null,"body":"When there are multiple `[purchase_link]` shortcodes for the same product on the same page, each with its own `price_id`, adding any of them to the cart results in the first one on the page being added instead of the one clicked. Example shortcodes below. Clicking the one for `price_id=\"2\"` results in `price_id=\"3\"` being added to the cart.\r\n\r\n```\r\n[purchase_link id=\"718\" text=\"Buy Now\" style=\"button\" price_id=\"3\" color=\"grey\"]\r\n\r\n[purchase_link id=\"718\" text=\"Buy Now\" style=\"button\" price_id=\"2\" color=\"grey\"]\r\n\r\n[purchase_link id=\"718\" text=\"Buy Now\" style=\"button\" price_id=\"1\" color=\"grey\"]\r\n```"},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/comments/83057746","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3270#issuecomment-83057746","issue_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3270","id":83057746,"user":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T17:01:01Z","updated_at":"2015-03-18T17:01:01Z","body":"Looks good here."}}