Debut - display the price of the first product variant on collection pages?

Solved
RubySun
Tourist
3 1 1

I'd like to display the price of the first product variant on collection pages rather than displaying "From xxx price". Thank you very much if you could help!

0 Likes
RubySun
Tourist
3 1 1

This is an accepted solution.

After spending some time checking the code, I figured out how it worked. I added ".first_available_variant" after "variant: product" in product-card-grid.liquid. Problem solved.

 

<div product-id="{{ product.id }}" class="arv-collection arv-collection--{{ product.id }}"></div>
  {% include 'product-price', variant: product.first_available_variant %}
</div>

 

Alex_Sogho
New Member
1 0 0

This worked perfectly. Simple and easy. 

Thank you!!

0 Likes