Jump to content

Change carrier price to text value


Cesah

Recommended Posts

Hello!

I need to change one of my carrier price to text i.e. "varies". If it only were for the checkout page I could've done it by js but I need the same price value to be in checkout mails.

 

Thanks in advance for the help :)

Link to comment
Share on other sites

you should be able to do that on the correct theme file by replacing the shipping price with text "varies".

but price field might be used by other javascript or other component, so the safe way to do is to add a new field, and make original price field hidden.

 

for example assume below is the original price of shipping,

 

<span>{$total_shipping}</span>

 

Then you can change to as following, the red part is new added code.

 

<span style="display:none;">{$total_shipping}</span> <span>{l s='varies'}</span>

 

 hope this helps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...