{"id":14230410,"date":"2021-03-24T20:21:37","date_gmt":"2021-03-24T20:21:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/compatibility-with-single-variations-plugin\/"},"modified":"2021-03-24T20:30:04","modified_gmt":"2021-03-24T20:30:04","slug":"compatibility-with-single-variations-plugin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/compatibility-with-single-variations-plugin\/","title":{"rendered":"Compatibility with single variations plugin"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I use the perfect brands woocommerce plugin on the website to view the brands assigned to a product.<br \/>\nUnfortunately, archive page does not display the brands assigned to a single variant.<\/p>\n<p>I found a similar error but it is assigned to a different plugin: https:\/\/wordpress.org\/support\/topic\/product-variations-not-showing-in-brands-page\/<\/p>\n<p>Is there any solution to this?<\/p>\n<p><strong>Edit:<\/strong><\/p>\n<p>I could probably find a solution:<\/p>\n<p>I edited plugin file: includes\/class-admin.php<\/p>\n<p>line 122-125:<\/p>\n<p>from:<\/p>\n<pre><code>$taxonomies = array(\n&#039;product_cat&#039;,\n&#039;product_tag&#039;);<\/code><\/pre>\n<p>to:<\/p>\n<pre><code>$taxonomies = array(\n&#039;product_cat&#039;,\n&#039;product_tag&#039;,\n&#039;pwb-brand&#039;);<\/code><\/pre>\n<p>And then I ran re-init variations in plugin settings.<\/p>\n<p><strong>Issue:<\/strong><\/p>\n<p>The change will disappear when there is an update .. Is there any filter \/ action that can overwrite this code?<\/p>\n<p>Best Regards,<br \/>\nMateusz K<\/p>\n","protected":false},"template":"","class_list":["post-14230410","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14230410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14230410\/revisions"}],"predecessor-version":[{"id":14230429,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14230410\/revisions\/14230429"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14230410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}