Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I want to display the first variants price on my website for all product prices. The problem I have is its displaying the cheapest price for the variant. My problem is the lowest priced variant is not the price I need to display. I need to display the 1st variants price and not the last one.
For reference I sell lightsabers, and an option for each model is to just buy the hilt which is cheaper than buying the whole saber. I need the price displayed for the whole saber and not just the hilt.
For example the whole sabers price is $100 but the Hilt itself is $60 so my collections display the lower price as the price of the item and not the price for the whole product.
Solved! Go to the solution
This is an accepted solution.
Hey @ConstantineLV
Pls follow below steps to fix your issue.
1. Open your theme code editor
2. Open the file '' in the snippets folder.
3. Replace your code in line 206 with below.
{% render 'price', product: card_product, price_class: '', show_compare_at_price: true, use_variant: true %}
Hope this helps. Feel free to reach out if you need any further assistance.
Hey @ConstantineLV
Welcome to shopify community.
Your requirement sounds reasonable. And it is possible to fix it.
To fix your issue efficiently, tell me what theme are you using?
I am using the Spotlight Theme
This is an accepted solution.
Hey @ConstantineLV
Pls follow below steps to fix your issue.
1. Open your theme code editor
2. Open the file '' in the snippets folder.
3. Replace your code in line 206 with below.
{% render 'price', product: card_product, price_class: '', show_compare_at_price: true, use_variant: true %}
Hope this helps. Feel free to reach out if you need any further assistance.
That worked Perfectly!!
Thank you!
Hello dear, I have the same problem, do you think could work also for the CRAFT theme?
Hi @Angel1Web1
Yes, it should work on your theme too. Please have a try.
It works perfectly thanks, it was at the line 202
Hi there
Can you please suggest a fix for Stiletto theme?
I have the opposite of this problem. I WANT to show the lowest priced variant but it currently shows the first variant (which is also out of stock), what should the code be in line 206?
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024