Add to Cart button align for all products in a row

Hi,

Now the add to cart is not aligned after I added some review ratings for some products. Does anyone how to make Add to cart lower for all the products? like making the no review rating product down a little bit. thanks

The below is my current code in product cart grid liquid.

{% unless grid_image_width %}
{%- assign grid_image_width = ‘600x600’ -%}
{% endunless %}

{{ product.featured_image.alt }} {% if product.images.size > 1 %} {{ product.images[1] | escape }} {% endif %}
{{ product.title }}
{% if section.settings.show_vendor %}
{{ product.vendor }}
{% endif %}
{% include 'product-price', variant: product %}
{% if product.variants.size == 1 %} <button type="submit" name="add" id="AddToCart-{{ section.id }}"class="btn product-form__cart-submit"
{% unless current_variant.available %}

{{ ‘products.product.add_to_cart’ | t }}
{% endunless %}

{% else %}

{% endif %}

1 Like

@DELONG_HUANG

Sorry for facing this issue, it’s my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question. :blush:

Please share your site URL,
So I will check and provide a solution here.

Add minimum height using css on this class

.grid-view-item__meta{ min-height:100px;}
1 Like
.grid-view-item__meta{ min-height:100px;}

hi,

which line should I add this? at the bottom? thanks

my store URL is www.minidrago.com

hi,

store is www.minidrago.com

@DELONG_HUANG

thanks can you please add this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
    this code apply for after 5 - 6 second
a.grid-view-item__link.has-secondary {
    min-height: 420px;
}
@media only screen and (max-width: 749px) {
a.grid-view-item__link.has-secondary {
    min-height: 220px;
}
}

Hi Team,

I too have similar issue. Add to cart button is not aligned properly in our site. URL is : Munnota.com

The URL is localised but you can check Add to cart button in English. I tried above code, but it did not work. Kindly help to resolve the issue.

1 Like

@Munnota

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

@KetanKumar Thanks for the reply. Here is the URL: munnota.com

@Munnota

thanks for URL

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
    this code apply for after 5 - 6 second
.product-card {min-height: 330px;}
.product-card + form {
    margin-bottom: 40px;
}

Hi Ketan,

Does this work for all similar themed stored? I tried with my website also but doesn’t seem to change the spacing. I’m trying to get the “add to cart” to be aligned across all of the products.

www.lilaandfox.com.au

Thanks!