Skip Navigation

Woocommerce products images are not being shown if they are added in a Views slider

Won't fix

Reported for: Toolset WooCommerce Blocks 2.7.8

Symptoms

When the WooCommerce Product image is displayed in a View that is using AJAX pagination (for example, a slider), then all Product Images but the first one in the Loop will not be displayed.

Workaround

The resolution for this and the restriction is mentioned on our documentation page here. The solution is the following.

Tip 2: When outputting WooCommerce product images in listings customized by Toolset, the best practice is to use the img_tag format wrapped in links.

[wpv-woo-product-image size='shop_single' output='img_tag' enable_third_party_filters='no' gallery_on_listings='no']

This ensures that images are displayed either using AJAX or non-AJAX based sliders. This is also how WooCommerce core plugin displays its products in listings. Only use the default WooCommerce image dimensions in listings when you would like to display gallery images.

2 thought on Woocommerce products images are not being shown if they are added in a Views slider

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>