Community Forums 

Main Content

Changing Text

    Feb 27 2014 15:23:34

    #1

    ScottS

    Join date : 2014-01-17      Posts : 7

    In the cart I would like to change the text from "Shipping Address" to "Order Information." I found this excellent thread (https://www.mals-e.com/viewtopic.php?id=10585&mid=10585&fid=2) and entered the following script under "Other messages and general settings" -> "Shipping Message": <script>function x(){document.body.innerHTML=document.body.innerHTML.replace(/Shipping address /gi,"Order Information");}onload=x;</script>. Unfortunately this did not change my text. I then tried this script under "Payments Message" and still no luck. I'm sure I'm doing something wrong since so many others seem to have changed the text without much of an issue. Any help would be appreciated.



    Feb 27 2014 18:28:40

    #2

    Geoff

    Join date : 2008-09-18      Posts : 415

    In your line of script, remove the space after the text, Shipping address



    Feb 27 2014 18:57:12

    #3

    ScottS

    Join date : 2014-01-17      Posts : 7

    That was it, Geoff! Thank you so much! I had copied that string of text exactly from another post, so this definitely clarifies the issue. Also, is there a way to change (or remove) the text in the checkout fields (i.e. Full Name to First Name, etc.)?



    Feb 27 2014 19:27:43

    #4

    Geoff

    Join date : 2008-09-18      Posts : 415

    Sure, just add further statements inside the function, for example

    <script>function x(){document.body.innerHTML=document.body.innerHTML.replace(/Shipping address/gi,"Order Information");document.body.innerHTML=document.body.innerHTML.replace(/Full name/gi,"First name");}onload=x;</script>

    Each statement is separated by a semicolon.

    Be aware that there is a character limit in the boxes where you are entering this script. Instructions to deal with this are in the original thread you found.



    Feb 27 2014 20:49:44

    #5

    ScottS

    Join date : 2014-01-17      Posts : 7

    Pure genius! Thank you so much!