Hi all. I need to hide product prices for 3 different vendors, ideally sitewide but specifically on the product grid/product price block in the default collection, where they will be mixed in with other vendors whose prices I am able to list. The names of these 3 vendors are elena dawson, atelier suppan, and john alexander skelton. Show “Inquire for price” or similar messaging instead of the numerical price. I am using Symmetry theme.
Topic summary
A store owner needs to hide prices for three specific vendors (elena dawson, atelier suppan, and john alexander skelton) on their Shopify site using the Symmetry theme, displaying “Inquire for price” instead.
Problem Context:
- Prices should be hidden sitewide, particularly on product grids and collection pages
- These vendors’ products appear mixed with other vendors whose prices remain visible
- Example page provided: shopworthwhile.com/collections/tops
Solution Provided:
A technical solution was offered involving editing the price.liquid snippet file:
- Add conditional logic checking if
product.vendormatches any of the three vendor names - Display “Inquire for price” text for matching vendors
- Show normal pricing for all other vendors
- Requires adding code at a specific location in the file and closing the conditional at the end
Status:
The discussion remains open with the store owner yet to confirm implementation. An alternative offer was made to handle the customization directly if the code editing proves difficult.
Shirts at Worthwhile this is an example of one of these pages
Hi @shopworthwhile,
Please go to Actions > Edit code > Snippets > price.liquid file. Please send me the code of the file, I will check and guide you to change it
{% comment %}
Parameters:
-
product {Object} - Product object.
-
show_currency_code {Boolean} - Use ‘money_with_currency’ instead of ‘money’.
-
show_labels {Boolean} - Show Sale/Sold Out labels (optional, default is false).
-
for_variant_picker {Boolean} - Uses variant price and markup for display of all variant states (optional, default is false).
-
current_variant {Object} - Current variant, if for_variant_picker is true.
Usage:
{% render ‘price’, product: product %}
{% endcomment %}
{%- liquid
assign variant = current_variant | default: product.variants | sort: ‘price’ | first
if for_variant_picker
if current_variant == false
assign available = true
endif
else
assign for_variant_picker = false
assign available = variant.available | default: false
endif
assign compare_at_price = variant.compare_at_price
assign price = variant.price | default: 1999
-%}
{%- if compare_at_price > price -%}
{{- ‘products.product.price.sale_price’ | t -}}
{%- else -%}
{{- ‘products.product.price.regular_price’ | t -}}
{%- endif -%}
{%- if product.price_varies -%}
{%- if for_variant_picker == false -%}
{{ ‘products.product.from’ | t }}
{%- elsif for_variant_picker and current_variant == false -%}
{{ ‘products.product.from’ | t }}
{%- endif -%}
{%- endif %}
{%- if show_currency_code -%}
{{ price | money_with_currency }}
{%- else -%}
{{ price | money }}
{%- endif -%}
{% if for_variant_picker or compare_at_price > price -%}
{%- if compare_at_price > price -%}
{{- ‘products.product.price.regular_price’ | t -}}
{%- endif -%}
{%- if compare_at_price > price -%}
{{- compare_at_price | money -}}
{%- endif -%}
{%- endif -%}
{% if show_labels %}
{% if settings.prod_sold_out_show and product.available == false %}
{{ ‘products.product.sold_out’ | t }}
{% elsif settings.prod_pre_order_label_show and product.template_suffix contains ‘preorder’ %}
{{ ‘products.product.preorder’ | t }}
{% elsif settings.prod_sale_show and variant.compare_at_price > variant.price %}
{{ ‘products.product.sale’ | t }}
{% endif %}
{% endif %}
{% if for_variant_picker or variant.unit_price_measurement %}
{{ ‘products.product.price.unit_price’ | t }}
{{ variant.unit_price | money }}
{{ ‘products.product.price.unit_price_separator’ | t }}
{%- if variant.unit_price_measurement.reference_value != 1 -%}
{{- variant.unit_price_measurement.reference_value -}}
{%- endif -%}
{{ variant.unit_price_measurement.reference_unit }}
{% endif %}
{% if for_variant_picker %}
{{ ‘products.variant.non_existent’ | t }}
{% endif %}
Hi @shopworthwhile,
Please add code here:
{%- if product.vendor == 'elena dawson' or product.vendor == 'atelier suppan' or product.vendor == 'john alexander skelton' -%}
Inquire for price
{%- else -%}
and add ‘{%- endif -%}’ at the end of the file.
@shopworthwhile it will need bit code editing, please try code given by @namphan , if you find it difficult then can you accept me as collaborator? I can do it for you
