Skip to content

Option to crop product images #15

@MiiaKlingstedt

Description

@MiiaKlingstedt

Quite commonly an ecommerce store wants to use only square images.

The theme settings/theme should have the option to crop all product images to square format.

Code for productCard snippet

       {% if product.featuredImage %}
      <figure>
          <img class="{{ settings.col_card_img_height }}" src="{{ product.featuredImage | product_img_url:400,400, 'cropped' }}" alt="{{ product.featuredImage.alt }}" />
      </figure>
      {% endif %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions