{"action":"created","issue":{"url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/45","labels_url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/45/comments","events_url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/45/events","html_url":"https://github.com/spree-contrib/spree_volume_pricing/issues/45","id":22666050,"number":45,"title":"Volume pricing for product total","user":{"login":"createdbypete","id":703621,"avatar_url":"https://avatars.githubusercontent.com/u/703621?v=3","gravatar_id":"","url":"https://api.github.com/users/createdbypete","html_url":"https://github.com/createdbypete","followers_url":"https://api.github.com/users/createdbypete/followers","following_url":"https://api.github.com/users/createdbypete/following{/other_user}","gists_url":"https://api.github.com/users/createdbypete/gists{/gist_id}","starred_url":"https://api.github.com/users/createdbypete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/createdbypete/subscriptions","organizations_url":"https://api.github.com/users/createdbypete/orgs","repos_url":"https://api.github.com/users/createdbypete/repos","events_url":"https://api.github.com/users/createdbypete/events{/privacy}","received_events_url":"https://api.github.com/users/createdbypete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-11-14T14:36:02Z","updated_at":"2015-01-11T20:20:10Z","closed_at":null,"body":"Something that has come up before with volume pricing is being able to have it applied to the whole product. An example should make this easier to understand.\r\n\r\n> You supply uniforms they are often purchased by groups when new recruits join, this can often happen in batches. The group maybe ordering 10 t-shirts but they would be in various sizes. 3 Small, 6 Medium and 1 Large for example. Your volume pricing starts at 10 items per variant but it is unlikely your customers would ever purchase so many of a single size but combining all the sizes in the basket would often qualify. \r\n\r\nIn the example above you may wish to apply the volume price for each variant based on the total number of products not just the quantity of the individual variant.\r\n\r\nSo perhaps in the product there is an option to indicate total product quantity volume pricing (total of all variants in cart) or keep the current per variant volume pricing (total per variant).\r\n\r\nHopefully that make sense! My initial thoughts are to use the line items to find the other variants of the same product, sum the line item quantities together and pass that through to the volume price finder for each line item.\r\n\r\nOpen to the floor for feedback in case this is all complete madness."},"comment":{"url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/comments/69509532","html_url":"https://github.com/spree-contrib/spree_volume_pricing/issues/45#issuecomment-69509532","issue_url":"https://api.github.com/repos/spree-contrib/spree_volume_pricing/issues/45","id":69509532,"user":{"login":"Egbert","id":23045,"avatar_url":"https://avatars.githubusercontent.com/u/23045?v=3","gravatar_id":"","url":"https://api.github.com/users/Egbert","html_url":"https://github.com/Egbert","followers_url":"https://api.github.com/users/Egbert/followers","following_url":"https://api.github.com/users/Egbert/following{/other_user}","gists_url":"https://api.github.com/users/Egbert/gists{/gist_id}","starred_url":"https://api.github.com/users/Egbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Egbert/subscriptions","organizations_url":"https://api.github.com/users/Egbert/orgs","repos_url":"https://api.github.com/users/Egbert/repos","events_url":"https://api.github.com/users/Egbert/events{/privacy}","received_events_url":"https://api.github.com/users/Egbert/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T20:20:10Z","updated_at":"2015-01-11T20:20:10Z","body":"Did you get anywhere with that @createdbypete? I'm looking for just that!"}}