Category does not show products in another language
-
The shop page shows all products.
Only in the English language the products are shown on the category pages. In other languages (WPML) we get a 404, search field is shown, no products are shown.The problem is, that the translated products don’t have a postmeta of ‘wwpp_product_wholesale_visibility_filter’, an outer join is missing.
We could fix it with the following hack, removing meta_query:
includes/class-wwpp-query.php:190
$restricted_args = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1, 'fields' => 'ids', /* 'meta_query' => array( array( 'key' => WWPP_PRODUCT_WHOLESALE_VISIBILITY_FILTER, 'value' => array( $user_wholesale_role , 'all' ), 'compare' => 'IN' ) ) */ );
Version: 1.24
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Category does not show products in another language’ is closed to new replies.