You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the Products Shortcode to display a grid of products in a category, rendered using card template, even if there's only one result.
Actual behavior
If only one product is returned in query of Products Shortcode, the result is rendered using the Product_Shortcode_Single template, instead of Product_Shortcode_Grid.
Steps to reproduce behavior
Create a BigCommerce category and add only one product to it. Sync into Wordpress.
Use this shortcode on a page with your category slug: [bigcommerce_product category=my-category order=DESC orderby=date paged=1 per_page=9]
Expected behavior
Use the Products Shortcode to display a grid of products in a category, rendered using card template, even if there's only one result.
Actual behavior
If only one product is returned in query of Products Shortcode, the result is rendered using the Product_Shortcode_Single template, instead of Product_Shortcode_Grid.
Steps to reproduce behavior
Line causing issue
https://github.com/bigcommerce/bigcommerce-for-wordpress/blob/master/src/BigCommerce/Shortcodes/Products.php#L71
The text was updated successfully, but these errors were encountered: