Looper Provider | How to query Woocommerce Products + Specific Product Attribute

Hello!
I’m trying to build a Looper Provider in a Single Product Layout, to have a “Cross Sell” Grid with all the products from the same Brand of the current product:

Post Type = Woocommerce Product
Product Attribute = “Brand”
"Brand" Value = the same of the current product

I’ve tried with Query builder with no luck (Posts = Product it’s ok, but can’t get the right Taxonomy dynamically).

Also tried Current Post Terms, with Taxonomy = Product "Brand", but the Looper Consumers aren’t populated.

Finally tried Query builder, but can’t get the syntax right.

Please can you point me in the right direction?
Thanks!!

Hello @Draxdes,

Thanks for writing in!

To display the Cross-Sell items, make sure that you have set up the Cross in each of the product items:

And then in your custom layout, please use the Cross-Sell dynamic element:
Screen Shot 2021-02-25 at 11.48.51 AM

Hope this helps.

Hi @ruenel, i’d prefer NOT using the default “Cross Sells” element, since it is not customizable and it’s not automatic.

I’d prefer to have a looper like the one i described above.
Should i use the Query Builder? And how to target a specific Product attribute with it?
Thanks!

Hello @Draxdes,

WooCommerce has a special function to display the cross-sell which is why it is impossible for the Looper Provider at the moment. This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive.

Thanks!

Thanks @ruenel !

Hi @Draxdes,

You are most welcome. Please let us know if you have any further issues.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.