{"action":"created","issue":{"url":"https://api.github.com/repos/roots/sage/issues/1914","repository_url":"https://api.github.com/repos/roots/sage","labels_url":"https://api.github.com/repos/roots/sage/issues/1914/labels{/name}","comments_url":"https://api.github.com/repos/roots/sage/issues/1914/comments","events_url":"https://api.github.com/repos/roots/sage/issues/1914/events","html_url":"https://github.com/roots/sage/pull/1914","id":238385249,"number":1914,"title":"Add WooCommerce support for Controller","user":{"login":"darrenjacoby","id":15921694,"avatar_url":"https://avatars2.githubusercontent.com/u/15921694?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenjacoby","html_url":"https://github.com/darrenjacoby","followers_url":"https://api.github.com/users/darrenjacoby/followers","following_url":"https://api.github.com/users/darrenjacoby/following{/other_user}","gists_url":"https://api.github.com/users/darrenjacoby/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenjacoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenjacoby/subscriptions","organizations_url":"https://api.github.com/users/darrenjacoby/orgs","repos_url":"https://api.github.com/users/darrenjacoby/repos","events_url":"https://api.github.com/users/darrenjacoby/events{/privacy}","received_events_url":"https://api.github.com/users/darrenjacoby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-25T14:51:59Z","updated_at":"2017-07-05T07:30:30Z","closed_at":"2017-07-05T07:30:30Z","pull_request":{"url":"https://api.github.com/repos/roots/sage/pulls/1914","html_url":"https://github.com/roots/sage/pull/1914","diff_url":"https://github.com/roots/sage/pull/1914.diff","patch_url":"https://github.com/roots/sage/pull/1914.patch"},"body":"Passing the data to woocommerce allows Controller to use the data in WooCommerce template files."},"comment":{"url":"https://api.github.com/repos/roots/sage/issues/comments/313024892","html_url":"https://github.com/roots/sage/pull/1914#issuecomment-313024892","issue_url":"https://api.github.com/repos/roots/sage/issues/1914","id":313024892,"user":{"login":"QWp6t","id":2104321,"avatar_url":"https://avatars3.githubusercontent.com/u/2104321?v=3","gravatar_id":"","url":"https://api.github.com/users/QWp6t","html_url":"https://github.com/QWp6t","followers_url":"https://api.github.com/users/QWp6t/followers","following_url":"https://api.github.com/users/QWp6t/following{/other_user}","gists_url":"https://api.github.com/users/QWp6t/gists{/gist_id}","starred_url":"https://api.github.com/users/QWp6t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QWp6t/subscriptions","organizations_url":"https://api.github.com/users/QWp6t/orgs","repos_url":"https://api.github.com/users/QWp6t/repos","events_url":"https://api.github.com/users/QWp6t/events{/privacy}","received_events_url":"https://api.github.com/users/QWp6t/received_events","type":"User","site_admin":false},"created_at":"2017-07-05T07:30:30Z","updated_at":"2017-07-05T07:30:30Z","body":"Yeah, so far in all my tests, I've been able to get this to work without any issues. I'm not really sure which method you guys are using to make your theme support WooCommerce, but I used a few different techniques. The easiest to hook into `woocommerce_template_loader_files` and tell it to look for `woocommerce.blade.php`, but if you want the increased granularity of single-product, archive-product, etc., then you can hook into `woocommerce_locate_template` and return `template_path($template)`. (You can do the same with `wc_get_template_part` to include WooCommerce partials.)\r\n\r\nThe former will make controller/Woocommerce.php available while the latter will make controller/SingleProduct.php available.\r\n\r\nFor what it's worth, WooCommerce recommends making use of template hooks instead of overwriting their template files. But I will still document all of this before Sage 9 launches."}}
{"actor":{"display_login":"QWp6t"}}