'OrderNow' to 'Submit' on a single catalog item

alberttagle
Tera Contributor

Hi,

How do I change the ORDER NOW button text to SUBMIT, in a specific catalog item?

I don't want to change it globally, just for specific one.

I tried to look up and found the following, but both codes do not work:

1.)

On Load Catalog Client Script

var button = document.getElementById("order_now");

button.text = 'Submit';

2.)

On Load Catalog Client Script

document.getElementById("oi_order_now_button").innerHTML='Submit';

1 ACCEPTED SOLUTION

VigneshMC
Mega Sage

function onLoad() {
document.getElementById("order_now").innerHTML = "submit";
}

 

find_real_file.png

 

Above code works perfectly for me.

 

Thanks,

Vignesh

View solution in original post

15 REPLIES 15

Brian Lancaster
Tera Sage

I do not believe this button is part of the items so I'm guessing a Catalog Client script will not do it.  This is most likely part of the of a UI Page and you would have to write a script there to change it.

VigneshMC
Mega Sage

function onLoad() {
document.getElementById("order_now").innerHTML = "submit";
}

 

find_real_file.png

 

Above code works perfectly for me.

 

Thanks,

Vignesh

Thanks!!! this worked! 🙂

Can you also help me remove the phrase "Order this item"?

find_real_file.png

 

Thanks!