Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hi Everyone, I want to delete "from" text on my collection page:
What should I do to change the code? Thanks!
Current code:
<div class="grid-product__price">
{% if on_sale %}
<span class="visually-hidden">{{ 'products.general.regular_price' | t }}</span>
<span class="grid-product__price--original">{{ product.compare_at_price | money }}</span>
<span class="visually-hidden">{{ 'products.general.sale_price' | t }}</span>
{% endif %}
{% if product.price_varies %}
{% assign price = product.variants[0].price | money %}
<span {% if on_sale %}class="sale-price"{% endif %}>
{{ 'products.general.from_text_html' | t: price: price }}
</span>
{% else %}
<span {% if on_sale %}class="sale-price"{% endif %}>
{{ product.price | money }}
</span>
{% endif %}
{%- assign product_variant = product.selected_or_first_available_variant -%}
{%- if product_variant.unit_price_measurement -%}
<div class="product__unit-price">
{%- capture unit_price_base_unit -%}
{%- if product_variant.unit_price_measurement -%}
{%- if product_variant.unit_price_measurement.reference_value != 1 -%}
{{ product_variant.unit_price_measurement.reference_value }}
{%- endif -%}
{{ product_variant.unit_price_measurement.reference_unit }}
{%- endif -%}
{%- endcapture -%}
{{ product_variant.unit_price | money }}/{{ unit_price_base_unit }}
</div>
{%- endif -%}
</div>
Please share store URL.
Thanks!
hii, @RRJJ
Kindly share your store URL so,
I can solve it perfectly.
Thank You.
I have checked your webshop but not dispaly "form" text in your collection page . please share collection page url.
Thanks!
Hi @RRJJ ,
Hope you are well.
Can you try removing the below code from the code that you have posted and save the file ?
'products.general.from_text_html' |
Hope that helps.
Thanks
User | RANK |
---|---|
234 | |
89 | |
85 | |
52 | |
41 |