So, on one page checkout, I would like to add a label, caption, whatever, to the billing address email that says something like "Software products are delivered to this email" preferably without touching the core. We've done alot of CSS, Javascript, C#, and HTML customizations (I'm mostly CSS and HTML and I would prefer not to bother our actual developer with this) to our store, but this one has me stumped.
I've tried:
- Using CSS content-before etc, but there is no id or classes to feed off of with this. The <input> is a self-closing element, so the content stuff doesn't work with it, according to the internet.
- Seeing if I could get to it in the HTML views and partial views, can't seem to get close enough to it to change it.
- Using Javascript to look for the for="BillingNewAddress_Email" and replace or add on to contents of said <label>
The last one seems the most promising, but my Javascript Fu isn't quite where it needs to be. If it helps, here is what I have so far: (I'm using the CSS color change to just see if I can get something to happen)
$(function () {
$("label").each(function (index) {
if ($(this)for() === "BillingNewAddress_Email") $(this).css("color", "red");
});
});