{"action":"opened","issue":{"url":"https://api.github.com/repos/technofreaky/WooCommerce-Role-Based-Price/issues/3","labels_url":"https://api.github.com/repos/technofreaky/WooCommerce-Role-Based-Price/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/technofreaky/WooCommerce-Role-Based-Price/issues/3/comments","events_url":"https://api.github.com/repos/technofreaky/WooCommerce-Role-Based-Price/issues/3/events","html_url":"https://github.com/technofreaky/WooCommerce-Role-Based-Price/issues/3","id":98030685,"number":3,"title":"Variable Price range for role-based user","user":{"login":"jer0dh","id":3452043,"avatar_url":"https://avatars.githubusercontent.com/u/3452043?v=3","gravatar_id":"","url":"https://api.github.com/users/jer0dh","html_url":"https://github.com/jer0dh","followers_url":"https://api.github.com/users/jer0dh/followers","following_url":"https://api.github.com/users/jer0dh/following{/other_user}","gists_url":"https://api.github.com/users/jer0dh/gists{/gist_id}","starred_url":"https://api.github.com/users/jer0dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jer0dh/subscriptions","organizations_url":"https://api.github.com/users/jer0dh/orgs","repos_url":"https://api.github.com/users/jer0dh/repos","events_url":"https://api.github.com/users/jer0dh/events{/privacy}","received_events_url":"https://api.github.com/users/jer0dh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T21:14:44Z","updated_at":"2015-07-29T21:14:44Z","closed_at":null,"body":"The get_price_html returns the correct html string when a user or non-user logs into the site that isn't in role-based pricing.  If I login as a user that is in a role and there are role-based regular prices on each of the variable prices, I get a $0.00 in the html string that is returned.\r\n\r\nI noticed in your code line 151 in class-product-pricing-frontend.php, that the $prices variable does get the correct role-based regular prices and then on line 153, $saleprice gets the html string that appears to be the correct string to return.  The function though returns $price that contains $0.00.  \r\n\r\nIf I change line 153 and change the variable from $saleprice to $price, it appears to be working for me, but I don't like changing a plugins code."}}