Site icon Hip-Hop Website Design and Development

How to display products based on 2 taxonomy? [closed]

I have created 16 attributes, including the partner attribute and the subsription packages attribute.

The partner attribute contains the value/term:

  1. Frans
  2. Jackson
  3. Sufiya
  4. Pardans
  5. And so on

The subscription plan attribute contains the value/term:

  1. Silver
  2. Gold
  3. Platinum
  4. 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 :

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