My products are of various sizes and I do not want them all to be the same size or have the same aspect ratio. My question is, how can I vary the number of products per row in a product grid. Meaning:
Row 1: 3 products of my choice
Row 2: 4 products of my choice.
So I need to vary the number per row and control which products are on which row, so similar sized products are shown on the same row.
Go to Store Online-> theme → edit code ->sections/main-collection-product-grid.liquid.
Find “{%- for product in collection.products -%}”. Update code for li tag likes the screenshot below.
- ```

Result is the same screenshot below:
