I'm trying to implement the "Remove days timeframe from USPS rates" sample code snippet, and I must be doing something wrong, because it isn't working. Hopefully, you can point me in the right direction. This is on a test store running 2.0.
The sample code is from here: https://wiki.foxycart.com/v/2.0/snippets/remove_usps_day_timeframe_label
The instructions there say:
Paste the following code in the “footer” option of the “inject custom code” template configuration option in your store's administration, or alternatively paste at the very end of the cart include template (not the cart or checkout templates):
There is no longer anything called "inject custom code" (at least, that I can see), but it appears that the new "custom header and footer code" section
(Templates > Configuration > Cart > Add custom header and footer code to your templates > custom footer) is supposed to fill that role. I've pasted the code there.
( I have not tried this on the "cart include template" -- I have not written one, and the documentation suggests that using one is well above my js level.)
The instructions further say that:
That does appear to be true in the cart-- the script appears down by the </body> tag, and the script does work in the sidecart.
However, the script does not appear to be working on my checkout page. The script appears in the page source not at the bottom with the </body> tag, but higher up, escaped as CDATA, and the custom code does not appear to be executing. Can you help me figure out what I'm doing wrong? Thanks!