I want to add prefix and suffix to the regular price on product page

I want to add prefix and suffix to the regular price on product page

My current pricing design on product page looks like below:

So in the I want to show prefix and suffix in the regular price (yellow highlighted price)

In short I want my pricing design to be displayed like below:

prefix-suffix-price.JPG

Hi @swayurindia

Which theme do you have?

in general idea you have to find price code for grid and product page after that you can add fix text,

also send us store url if possible

Best regard

Store link is www.swayur.com

I’m using Dawn theme

Follow this:

  1. Go to Online Store->Theme->Edit code

  2. Snippet - > price.liquid and find ā€œ

    ā€

  3. then add below code next to this line "

    "

M.R.P

  1. then find end for this

and add this below text just above it

Tax included

so it will look like


        M.R.P
      {%- unless product.price_varies == false and product.compare_at_price_varies %}
        {{ 'products.product.price.regular_price' | t }}
        
       
          <s>
            {% if settings.currency_code_enabled %}
              {{ compare_at_price | money_with_currency }}
            {% else %}
              {{ compare_at_price | money }}
            {% endif %}
          </s>
        
      {%- endunless -%}
      {{ 'products.product.price.sale_price' | t }}
      
        {{ money_price }}
      
        Tax included 
    

It is not working. The above code is showing the prefixed and suffixes in the before and after the SALE price

Instead I want to show them before and after my regular price - strike through (which is just below the sale price)

for that you can add code like this


        M.R.P
      {%- unless product.price_varies == false and product.compare_at_price_varies %}
        {{ 'products.product.price.regular_price' | t }}
        
       
          <s>
            {% if settings.currency_code_enabled %}
              {{ compare_at_price | money_with_currency }}
            {% else %}
              {{ compare_at_price | money }}
            {% endif %}
          </s>
        
   Tax included 
      {%- endunless -%}
      {{ 'products.product.price.sale_price' | t }}
      
        {{ money_price }}
      
     
    

Not working

Then add me staff in store i will do jasoliyabrijesh123@gmail.com

Best regard