diff --git a/sections/featured-collection.liquid b/sections/featured-collection.liquid index b5261870c0a..bc07d221ed4 100644 --- a/sections/featured-collection.liquid +++ b/sections/featured-collection.liquid @@ -95,28 +95,33 @@ aria-label="{{ 'general.slider.name' | t }}" > {% assign skip_card_product_styles = false %} - {%- for product in section.settings.collection.products limit: section.settings.products_to_show -%} -
  • - {% render 'card-product', - card_product: product, - media_aspect_ratio: section.settings.image_ratio, - image_shape: section.settings.image_shape, - show_secondary_image: section.settings.show_secondary_image, - show_vendor: section.settings.show_vendor, - show_rating: section.settings.show_rating, - skip_styles: skip_card_product_styles, - section_id: section.id, - quick_add: section.settings.quick_add - %} -
  • - {%- assign skip_card_product_styles = true -%} + + {%- if section.settings.collection.products.size > 0 -%} + {% paginate section.settings.collection.products by section.settings.products_to_show %} + {%- for product in section.settings.collection.products -%} +
  • + {% render 'card-product', + card_product: product, + media_aspect_ratio: section.settings.image_ratio, + image_shape: section.settings.image_shape, + show_secondary_image: section.settings.show_secondary_image, + show_vendor: section.settings.show_vendor, + show_rating: section.settings.show_rating, + skip_styles: skip_card_product_styles, + section_id: section.id, + quick_add: section.settings.quick_add + %} +
  • + {%- assign skip_card_product_styles = true -%} + {%- endfor -%} + {% endpaginate %} {%- else -%} {%- for i in (1..section.settings.columns_desktop) -%}
  • {%- endfor -%} - {%- endfor -%} + {%- endif -%} {%- if show_mobile_slider or show_desktop_slider -%}