Question

Hello I'm having trouble getting <script type="text/javascript"></script> display in the template/checkout/onepage/review/review.phtml or even the template/checkout/onepage/review/info.phtml. In fact the only place I can get a script tag to display is in the template/checkout/onepage/onepage.phtml.

Can anyone explain to me what I can do to get script tags to show up in the Order Review section? I need to add these scripts so I can tag orders for tracking.

Thanks in advance!

Was it helpful?

Solution

Magento will not strip out script tags so it is quite possible that you are editing the wrong template. Turn on template path hints to get the right file then insert the script tag.

OTHER TIPS

Your template must have been overriden by some other modules template files. BTW script tags are not written in template files. This causes many issues some of which I have personally faced

Include script tag in layout.xml using addJs in head or footer reference

But if you still want to include script in js see the current template file from the template path shown by fkim

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top