How to show the highest price on your product

My products have different prices, but the lowest price always shows on the product display page. I would like the highest price to show. How do I correct this?

1 Like

Hi @gemsofstlucia

Depending on your theme, you need to find the section you want to edit the price, then find the price line of code, and replace it with the code below.

{{ product.price_max | money }}

this is what I found. I tried changing to Max, but it still does not change use the highest price

{%- assign current_variant = product.selected_or_first_available_variant -%}
{%- assign featured_image = current_variant.featured_image | default: product.featured_image -%}
{%- assign metadata = product.metafields.experiences -%}
{%- assign durationHours = metadata.duration | divided_by: 60 -%}
{%- assign durationMinutes = metadata.duration | modulo: 60 -%}
{%- assign durationMinHours = metadata.durationMin | divided_by: 60 -%}
{%- assign durationMinMinutes = metadata.durationMin | modulo: 60 -%}
{%- assign durationMaxHours = metadata.durationMax | divided_by: 60 -%}
{%- assign durationMaxMinutes = metadata.durationMax | modulo: 60 -%}
{%- assign costLabel = metadata.costLabel | default: “Cost” -%}
{%- assign costPerUnitLabel = metadata.costPerUnitLabel | default: “per person” -%}
{%- assign durationLabel = metadata.durationLabel | default: “Duration” -%}
{%- assign locationLabel = metadata.locationLabel | default: “Location” -%}
{%- assign frequencyLabel = metadata.frequencyLabel | default: “Schedule” -%}

:root { /* Modifying these colors will have no effect on Internet Explorer and other older browsers see here for more information [https://caniuse.com/#search=css%20variables](https://caniuse.com/#search=css%20variables) */ --experiences-primary-background: #fff; --experiences-secondary-background: #f5f5f5; --experiences-primary-action: #505dbf; --experiences-secondary-text: #637381; --experiences-placeholder-color: #a0acb7; --experiences-disabled-background: #ccc; --experiences-disabled-text: #888; /* default colors --experiences-primary-background: #fff; --experiences-secondary-background: #f5f5f5; --experiences-primary-action: #505dbf; --experiences-secondary-action: #5c6ac4; --experiences-placeholder-color: #a0acb7; --experiences-disabled-background: #ccc; --experiences-disabled-text: #888; */ }

{{ product.title }}

{{ metadata.summary }}
{% if metadata.location != blank %}

{{ locationLabel }}

{% if metadata.location == "Zoom" %} {{ metadata.location }} {% else %} {{ metadata.location }} {% endif %}
{% endif %}

{{ costLabel }}:

{% assign price_min = product.price_max | money %} {% if product.price == 0 %} {% assign price_min = "FREE" %} {% endif %}

{% if product.price_varies %}
{{ price_min }} – {{ product.price_max | money }} {{ costPerUnitLabel }}
{% else %}
{{ price_min }} {{ costPerUnitLabel }}
{% endif %}

{{ durationLabel }}:

{% if metadata.durationMin != blank and metadata.durationMax != blank %} {% if durationMinHours != 0 %} {{ durationMinHours }}h {% endif %} {% if durationMinMinutes != 0 %} {{ durationMinMinutes }}min {% endif %}  –  {% if durationMaxHours != 0 %} {{ durationMaxHours }}h {% endif %} {% if durationMaxMinutes != 0 %} {{ durationMaxMinutes }}min {% endif %} {% else %} {% if durationHours != 0 %} {{ durationHours }}h {% endif %} {% if durationMinutes != 0 %} {{ durationMinutes }}min {% endif %} {% endif %}
{% if metadata.frequencyDescription != blank %}

{{ frequencyLabel }}:

{{ metadata.frequencyDescription }}
{% endif %}

Book now

{%- capture snippet_content -%}
{%- include ‘social-sharing’ -%}
{%- endcapture -%}

{%- unless snippet_content contains “Liquid error” -%}
{{ snippet_content }}
{%- endunless -%}

{% if featured_image != blank %}

{% endif %}

{% comment %}
NOTE: metadata.description is deprecated; please use product.description instead.
{% endcomment %}
{% if metadata.description != blank or product.description != blank %}

About this experience

{% if metadata.description != blank %} {{ metadata.description }} {% elsif product.description != blank %} {{ product.description }} {% endif %}

{% endif %}

{% if metadata.hostImage != blank or metadata.hostDescription != blank %}

Your Host

{% if metadata.hostImage != blank %}
Host image
{% endif %} {% if metadata.hostDescription != blank %} {% if metadata.hostImage == empty %}
{% elsif metadata.hostImage != blank %}
{% endif %}

{{ metadata.hostDescription | newline_to_br }}

{% endif %}
{% endif %}