Variant listing defaulting to highest price

Hi there! I have a listing with 9 variants, and when you look up the product title, it defaults to the highest price. I want the listing to say “from $6” rather than saying “$250”. Is there a way to do this without code and just change a setting? Or, if code is the only way to accomplish this, what would the code be?

1 Like

Hi @2ndstory ,

Let’s explore the options to achieve this:

  1. Without code: Unfortunately, there isn’t a built-in setting in Shopify to display the minimum price automatically. The default behavior is to display the highest price. Without custom code or a third-party app, it’s not possible to change this default behavior.

  2. Using code: To display the minimum price on the product listing, you’ll need to modify the code of your theme. This involves editing the liquid template files. The specific code required depends on the structure of your theme and how the prices are displayed. If you’re comfortable with coding, you can locate the code responsible for displaying the price and replace it with code that calculates and displays the minimum price.

  3. Third-party apps: If you prefer not to modify the code yourself, there are third-party apps available on the Shopify App Store that can help you achieve the desired functionality. Search for apps that offer dynamic pricing or variant price display options. These apps often provide settings that allow you to display the minimum price or show a price range for products with multiple variants.

Remember to backup your theme before making any code changes and test any modifications in a development environment to ensure compatibility and avoid unintended issues.

If you need further assistance or have more specific questions about your theme’s code, feel free to ask.

Hi, @2ndstory .

Thank you for posting this question!

I understand that you’re looking to change the the default pricing and I’m delighted to see that you got some pointers from the Shopify community. As @Rick-InventoryH has mentioned, you will need to customize the coding of your theme in order to accomplish this task. While I wouldn’t be able to help with the coding, I’d be happy to point you in the right direction depending on your theme.

If you’re using a Shopify-supported theme, then this is something that our Theme Support team can help you with. However, as part of our design policy, your store will need to be subscribed to a plan in order to be eligible to receive the complimentary design time included with our subscriptions. While we’re unable to help you with a customization request via the Shopify Community, we’d be happy continue assisting you through live chats. Simply visit the Shopify Help Center and login to your account to create a support request.

That being said, if you’re using a third-party or custom theme, then we’d recommend getting support for your theme from the theme designer as our we’re not familiar with the third-party coding. If the theme designer doesn’t offer customization support, then you will need to consider hiring a developer to assist you with this task if you’re not comfortable working with coding languages. Should you need help with finding a developer, then we’d encourage taking a look at our directory of certified developers on Shopify Experts.

I noticed that you’re a new member of our Shopify Community and I’d love to hear more about your business! What kinds of products are you selling? Do you have a marketing plan prepared for your store?

For code, you can find the code to display price and modify it like this

{% assign lowest_price = product.first_available_variant.price %}

{% for variant in product.variants %}
{% if variant.available %}
{% if variant.price < lowest_price %}
{% assign lowest_price = variant.price %}
{% endif %}
{% endif %}
{% endfor %}

{% if product.price_varies %}From{% end if %} {{ lowest_price }}

Without code, you can try this filter app to modify the price to any format that you wanted
https://apps.shopify.com/ultimate-search-and-filter-1