I use the Wixstores app. I want to change the button text on the checkout page via java scrpit.
I want to change the button text from “place order” to “Anfrage abschicken”.
My current scrpit:
setInterval ( function () {
let Bestellbutton2 = document . getElementsByClassName ( "_7tbHf _3LH_L" );
Bestellbutton2 [ 0 ]. innerHTML = "Anfrage absenden" ;
}, 500 );
However, this only works if I manually inspect the button in the web browser beforehand.
I suspect that my script runs on the context “Top” and not on the context chekcout “ecom.wixapps.”.
Does anyone here have a solution?