Hi,
I am trying to show WooCommerce product variations as individual products using the query Cwicly block.
I have tried using the query editor to select posts with type product
and product_variation
,
which correctly selects all variations as a single product.
But when I save the page and look at it on the frontend, then it still only shows the main products.
I have 3 main products with 4–5 variations each. A total of 13 variations.
Step-by-step reproduction instructions:
Prerequisite:
- WooCommerce product with variations
- Open the Post Editor/Site Editor
- Add Cwicly query block
- Make sure the query block is set to “Posts”
- In
Post Type
chooseProducts
and then typeproduct_variation
and chooseCreate product_variation
- Add Query Template
- Add image, and set data source to
Dynamic
. ForData
chooseWordPress
. For´WordPress
chooseFeatured Image
Now if you look at the page it will show all the variations. However, if you enable frontend rendering for the query, then it won’t work.
Editing in the Gutenberg editor:
Frontend with Frontend Rendering
enabled:
Frontend with Frontend Rendering
disabled:
Networks tab response from /wp-json/wp_query/args
Environment info
- WordPress version: 6.7.1
- Cwicly Plugin version: 1.4.4