I have a minor UI script we need on the checkout page, we have a custom One Page Checkout (OPC).
Specifically when a specific shipping method is available, the script should append to the label text a link that opens a modal window with more details about the option.
I have a little jQuery and some content section data that when I run the script from the browser console works exactly as I want.
BUT
I cannot find where to put this script so that it runs reliably in the OPC.
I have tried:
Here is a pastebin of the script snippet -- https://paste.mozilla.org/n8GDbysh
Look below to see the solution in a set of little posts
Specifically when a specific shipping method is available, the script should append to the label text a link that opens a modal window with more details about the option.
I have a little jQuery and some content section data that when I run the script from the browser console works exactly as I want.
BUT
I cannot find where to put this script so that it runs reliably in the OPC.
I have tried:
- putting the script snippet in a JavaScript Resource and tying that to the OPC page
- putting the script in the OPC header
- putting the script in the OPC footer
- putting the script in the global footer
Here is a pastebin of the script snippet -- https://paste.mozilla.org/n8GDbysh
Look below to see the solution in a set of little posts
Comment