2.6 Products shortcode problem (by SKU)
-
[products skus="foo, bar, baz"]
-list all products. ??Problem is class-wc-shortcodes.php on line 351
// Ignore catalog visibility $query_args['meta_query'] = WC()->query->stock_status_meta_query();
-this line overwrite previous meta_query.
e.g. fix:
$query_args['meta_query'][] = WC()->query->stock_status_meta_query();
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘2.6 Products shortcode problem (by SKU)’ is closed to new replies.