Exclude unwanted Products

edited May 2019 in Portfolio
Hello support team,

So we're building a shop with woocommerce.
To show the products we're using the post masonry grid. We had to do it this way, because the client asked for a really weird way to portray the products, so we're using post mansory grid to display the products, which layout we did in the grid builder.


To display the products we use category tags. Sometimes we have to choose 2 categories, but the problem is, that they show more than we want. We just want the products to be shown, which are in both of these categories. Not every product, which is linked to these to categories. 

Example:

PRODUCTS

Product: A

Categories
Brand: Brand 1
Type: Chair


Product: B

Categories
Brand: Brand 1
Type: Sofa


POST MASONRY GRID

Chosen Categories: 
Brand: Brand 1
Type: Chair

Outcome: Product A, Product B

What we want: Product A

The thing is we have to include "Brand 1", because you need to be able to filter this in the shop-filter.
And I know I can exlude other products under "Data Settings -> Exclude".
But is there a better, more effective way?

I hope you understand what I mean. I know, really complicated :/

Thank you in advance.

Comments

  • Hi,
    As I assume, you want to display an item which type is "Chair" from Brand 1 (like on your example) with WooCommerce shortcodes?

    You should provide the content product attributes, exactly the cat_operator.

    Thanks
  • Hello,

    No, not with shortcodes. We want to display the product with the "Post Masonry Grid". I know its a really untypical way to portray this product, but the client asked for this.

    And if we assign more than one category to a product, everything within these two categories will be shown. But actually we just want the products to be shown, which have all of these categories assigned. And not every product within this category. I hope you understand it better now. The example above should explain it properly.

    Thank you in advance.
  • So you can only set the masonry grid using a muffin builder item or a shortcode.
    The Masonry style is used only for the main shop page. If you want to insert it inside a single product page then you will have to use a shortcode or an item.

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.