Shopify themes, liquid, logos, and UX
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!
I have checked your webshop but not dispaly "form" text in your collection page . please share collection page url.
Thanks!
@RRJJ - please check language settings.. if it is on collection then collection tab or otherwise product tab. you will have text in it
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
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024