Not able to fetch woocommerce variation sales products for particular category products

WooCommerce uses ‘product_variation’ as the post type for variable products.

So the top level for a variable product is post_type ‘product’, whereas each variation is post_type ‘product_variation’.

Data associated with the particular variation is stored with the appropriate ‘product_variation’ post.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)