{"action":"created","issue":{"url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/273","repository_url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things","labels_url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/273/comments","events_url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/273/events","html_url":"https://github.com/Prospress/woocommerce-subscribe-all-the-things/issues/273","id":296143941,"number":273,"title":"Changing the text within the labels","user":{"login":"jksh23686","id":36345680,"avatar_url":"https://avatars3.githubusercontent.com/u/36345680?v=4","gravatar_id":"","url":"https://api.github.com/users/jksh23686","html_url":"https://github.com/jksh23686","followers_url":"https://api.github.com/users/jksh23686/followers","following_url":"https://api.github.com/users/jksh23686/following{/other_user}","gists_url":"https://api.github.com/users/jksh23686/gists{/gist_id}","starred_url":"https://api.github.com/users/jksh23686/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jksh23686/subscriptions","organizations_url":"https://api.github.com/users/jksh23686/orgs","repos_url":"https://api.github.com/users/jksh23686/repos","events_url":"https://api.github.com/users/jksh23686/events{/privacy}","received_events_url":"https://api.github.com/users/jksh23686/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-10T23:31:37Z","updated_at":"2018-02-12T06:52:35Z","closed_at":"2018-02-12T06:52:35Z","author_association":"NONE","body":"First off love the plug-in it saved my butt with a client and not having to reorganize their store and SKUs!  This isn't so much of a bug as help with understanding where to change a few things being that its an add on to a plug-in.\r\n\r\nBasically I need to change the output for the variations on subscriptions:\r\n1. Need to change to the text from NONE to One Time Purchase then the price. \r\n2. For each subscription I need to change the text to say: Subscribe & save [X%]; {Sub_price}\r\n\r\nAny help in this would be awesome. I found some functions for the price_string but it seemed to do nothing.\r\n\r\n```\r\nfunction wc_subscriptions_custom_price_string( $pricestring ) {\r\n    $newprice = str_replace( 'every 3 months', 'per season', $pricestring );\r\n    return $newprice;\r\n}\r\nadd_filter( 'woocommerce_subscriptions_product_price_string', 'wc_subscriptions_custom_price_string' );\r\nadd_filter( 'woocommerce_subscription_price_string', 'wc_subscriptions_custom_price_string' );\r\n```\r\n\r\nAny help would be appreciated."},"comment":{"url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/comments/364840422","html_url":"https://github.com/Prospress/woocommerce-subscribe-all-the-things/issues/273#issuecomment-364840422","issue_url":"https://api.github.com/repos/Prospress/woocommerce-subscribe-all-the-things/issues/273","id":364840422,"user":{"login":"franticpsyx","id":1783726,"avatar_url":"https://avatars0.githubusercontent.com/u/1783726?v=4","gravatar_id":"","url":"https://api.github.com/users/franticpsyx","html_url":"https://github.com/franticpsyx","followers_url":"https://api.github.com/users/franticpsyx/followers","following_url":"https://api.github.com/users/franticpsyx/following{/other_user}","gists_url":"https://api.github.com/users/franticpsyx/gists{/gist_id}","starred_url":"https://api.github.com/users/franticpsyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franticpsyx/subscriptions","organizations_url":"https://api.github.com/users/franticpsyx/orgs","repos_url":"https://api.github.com/users/franticpsyx/repos","events_url":"https://api.github.com/users/franticpsyx/events{/privacy}","received_events_url":"https://api.github.com/users/franticpsyx/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T06:52:35Z","updated_at":"2018-02-12T06:52:35Z","author_association":"MEMBER","body":"Hey @jksh23686 thanks for the kind words!\r\n\r\nI believe [this](https://github.com/Prospress/woocommerce-subscribe-all-the-things/blob/master/includes/display/class-wcs-att-display-product.php#L92) and [this](https://github.com/Prospress/woocommerce-subscribe-all-the-things/blob/master/includes/display/class-wcs-att-display-product.php#L111) are the filters you need to look at!\r\n\r\nIt looks like you'll be able to handle the rest 🥇 "}}
{"actor":{"display_login":"franticpsyx"}}