I have a checkout page on a site that generates a shipping message. I need to change the text of that shipping message.
Here is the path to the element needing changed:
#order_review > table > tfoot > tr.shipping > td > p
Here is the approach I'd like to take (correct me if a better one), but I need help drilling down to the right element:
var oldstring = "Enter your shipping information above to show shipping options."
var changeit = document.getElementById("order_review");
changeit.oldstring.replace("Enter your shipping information above to show shipping options.", "Enter your full address to verify free delivery.");
document.querySelector("#order_review > table > tfoot > tr.shipping > td > p")replacereturns a new string. And you are may looking for thetextContentproperty