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?
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” -%}
{{ product.title }}
{{ metadata.summary }}{{ locationLabel }}
{% if metadata.location == "Zoom" %} {{ metadata.location }} {% else %} {{ metadata.location }} {% 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 %}{{ frequencyLabel }}:
{{ metadata.frequencyDescription }}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 %}
{% if metadata.hostImage != blank or metadata.hostDescription != blank %}
Your Host
{{ metadata.hostDescription | newline_to_br }}
