How to delete "from" text on collection page

RRJJ
Tourist
16 0 2

Hi Everyone, I want to delete "from" text on my collection page:

RRJJ_0-1631945154353.png

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>

 

 

Replies 6 (6)

dmwwebartisan
Shopify Partner
12280 2546 3694

@RRJJ 

Please share store URL.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
RRJJ
Tourist
16 0 2
dmwwebartisan
Shopify Partner
12280 2546 3694

@RRJJ 

I have checked your webshop but not dispaly "form" text in your collection page . please share collection page url.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
suyash1
Shopify Partner
9077 1129 1479

@RRJJ - please check language settings.. if it is on collection then collection tab or otherwise product tab. you will have text in it

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
paranormal story video using AI

Zworthkey
Shopify Partner
5581 642 1565

hii, @RRJJ 
Kindly share your store URL so,
I can solve it perfectly.
Thank You.

prasanna1991
Shopify Partner
25 9 11

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

- Want to modify or custom changes on store Hire me.
- Feel free to contact me on prasanna.mahamulkar@gmail.com regarding any help.
- If helpful then please Like and Accept Solution.
Shopify Frontend Web Developer | Whatsapp Me