Hide £0.00 price from product card, Prestige 8.1.2

Hi,

I am trying to hide price from the product card where the price is £0.00

I seem to need to edit ‘product-card.liquid’ but cannot work out what to change

There is this section

{%- liquid
  if hide_product_information
    assign show_badges = false
    assign show_rating = false
    assign show_vendor = false
    assign show_title = false
    assign show_prices = false
    assign show_swatches = false
    assign show_quick_buy = show_quick_buy | default: settings.show_quick_buy, allow_false: true
    assign show_secondary_image = show_secondary_image | default: settings.show_secondary_image, allow_false: true
  else
    assign show_badges = show_badges | default: true, allow_false: true
    assign show_rating = show_rating | default: settings.show_product_rating, allow_false: true
    assign show_vendor = show_vendor | default: settings.show_vendor, allow_false: true
    assign show_quick_buy = show_quick_buy | default: settings.show_quick_buy, allow_false: true
    assign show_title = true
    assign show_prices = true
    assign show_secondary_image = show_secondary_image | default: settings.show_secondary_image, allow_false: true
    assign show_swatches = show_swatches | default: true, allow_false: true
  endif

-%}

and this section

{%- if show_title or show_prices or show_vendor and product.vendor != blank -%}
      
        {%- if show_vendor and product.vendor != blank -%}
          {%- capture vendor_class -%}smallcaps {% if settings.product_card_text_font == 'heading' %}heading{% endif %}{% endcapture %}
          {%- render 'vendor' with product.vendor, class: vendor_class -%}
        {%- endif -%}

        {%- if show_title or show_prices -%}
          

            {%- if show_title -%}
               0 %}style="--line-clamp-count: {{ settings.product_title_max_lines }}"{% endif %} data-instant>
                {{- product.title -}}
              
            {%- endif -%}

            {%- if show_prices -%}
              {%- render 'price-list', product: product, context: 'card' -%}
            {%- endif -%}
          

        {%- endif -%}
      

    {%- endif -%}

which refer to price

Any help much appreciated

Hi @RRBPhotobooks ,

You can try to code below:

{%- liquid
    if hide_product_information
        assign show_badges = false
        assign show_rating = false
        assign show_vendor = false
        assign show_title = false
        assign show_prices = false
        assign show_swatches = false
        assign show_quick_buy = show_quick_buy | default: settings.show_quick_buy, allow_false: true
        assign show_secondary_image = show_secondary_image | default: settings.show_secondary_image, allow_false: true
    else
        assign show_badges = show_badges | default: true, allow_false: true
        assign show_rating = show_rating | default: settings.show_product_rating, allow_false: true
        assign show_vendor = show_vendor | default: settings.show_vendor, allow_false: true
        assign show_quick_buy = show_quick_buy | default: settings.show_quick_buy, allow_false: true
        assign show_title = true
        assign show_prices = true
        assign show_secondary_image = show_secondary_image | default: settings.show_secondary_image, allow_false: true
        assign show_swatches = show_swatches | default: true, allow_false: true
    endif
    if product.price == 0
        assign show_prices = false
    endif
-%}