Hi there,
Here is the quick description of what I am trying to achieve:
1. I've got woo products assigned to specific user capabilities (membership level kinda) using Groups plugin
2. So if I am logged as user X with capability Platinum I can only "see" platinum products on my shop page
PROBLEM the product categories etc. displayed in the sidebar are these of the complete shop and not only those of Platinum products.
SOLUTION filter the root query of the shop by telling "display only products of which capability match current user capability". But I don't know how do to that.
I've tried to create a view. I couldn't get exactly what I wanted, but at least a potential workaround. BUT the main problem is that I loose the entire styling of the woo shop loop, with hover buttons, grid etc. and have to rebuild everything through the view editor… Unless I'm doing something wrong?
But for my workaround View query can be ok, how can I extract this query from View to paste it in the correct Woo .php template to filter the shop/product-loop query, without loosing my styling ?
Thank you for your help