[Resolved] Display view results only for simple product type
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to display simple products with views or filter view to display simple products
Solution:
"product_type" is the hidden taxonomy used by WooCommerce to store the product type. You need to use view's hook wpv_filter_query in order to query the simple products.
Hello. Thank you for contacting the Toolset support.
Well - as I understand, you only want to display 'simple" products with view - correct? If yes:
"product_type" is the hidden taxonomy used by WooCommerce to store the product type. You need to use view's hook wpv_filter_query in order to query the simple products.
For example - please add following code to your current theme's functions.php file:
Hi Minesh,
thanks for the example of code.
I tried it but the PHP Syntax Check show an error in the code. not sure how to solve it. i tried to close the the first array brackets but I still get an error.