Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

Possible to dynamically rename a shipping option?

USPS has a shipping option labeled “USPS Priority Mail 1-Day” which is inaccurate. It’s not next day delivery, but our customers assume it is. Then we get complaints about it.

Can I just rename this using JavaScript? I’ve got the following bit of jQuery that would do it... but I do not know how to make it fire. Is there an event or hook I can use?

jQuery('[for=shipping_service_id_14]').find('.fc-shipping-rates__rate__name').text('USPS Priority Mail');
Sign In or Register to comment.