Brand image not displayed in single variant listnings in loop
-
There is no product image displayed in the product loop when using Cross-Sells and Upsells and it is linking to a single variant of a variable product.
You should probably check if the product is a variant before displaying, then you can select the parent products brand if it is a single variant of a variable product.
Suggested fix:
addons/show_brands/show_brands_include.php line 308
Change:
$post_id = get_the_ID();
To:
if(get_post_parent()) { $post_id = get_post_parent(); } else { $post_id = get_the_ID(); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Brand image not displayed in single variant listnings in loop’ is closed to new replies.