The CreatorCon Call for Content is officially open! Get started here.

'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

Hi,

Where did you wrote this script in catalog client script or in client script? I've tried in catalog client script but it didn't worked for me.

It should be on a onload catalog client script

Hi,

I have tried with catalog  on load client script only. But didn't worked  for me.

Can you share your code ?.

Thanks

find_real_file.png