I have created 16 attributes, including the partner attribute and the subsription packages attribute.
The partner attribute contains the value/term:
- Frans
- Jackson
- Sufiya
- Pardans
- And so on
The subscription plan attribute contains the value/term:
- Silver
- Gold
- Platinum
- Diamonds
I also successed to show something (partner profile) before main content based on partner name.
The code is;
add_action( 'woocommerce_before_main_content','partner_diamond', 5 );
function partner_diamond() {
if ( is_tax( array('pa_partner') )) {
echo '<p>'profile partner'</p>';
}
}
What I want to ask is, how to display (automatically re-filter) products that also have attribute subscription packages with diamond value?
As an illustration, when a visitor accesses :
-
mysite.com/partner/frans
-
mysite.com/partner/jackson
-
mysite.com/partner/sufiyaa
-
mysite.com/partner/pardans
This will display a page based on the product with the attribute/partner name and also the diamond package attribute with additional content before the main content.
How do I achieve it?
Any help is greatly appreciated,
thank you