Zen Cart Logo
Forums / General Questions / Adding script to header is just login page

Adding script to header is just login page

Locked

Views: 747

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Apr 2010, 2:30 AM
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Adding script to header is just login page

I need to add some script to the header and body tag of JUST the login page. I'm not clear on how I go about getting it to appear on just a specific page. One piece of code needs to go before </head> and the other before </body>.

9 Apr 2010, 4:45 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding script to header is just login page

I need to add some script to the header and body tag of JUST the login page.
Please elaborate in detail what script you are attempting to add

9 Apr 2010, 4:57 AM
#3
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Adding script to header is just login page

It's some script that will control a multivariant program being run by an outside company. We need to install on script on the product page and one on the login page. Thanks!

9 Apr 2010, 5:03 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding script to header is just login page

It's some script that will control a multivariant program being run by an outside company.
Login should be a secure page....Again what is being gathered/shared by this script and why/what do they need with login info?
Or explain "In Detail" what it is and not just that it is "multivariant ", which says nothing

9 Apr 2010, 5:10 AM
#5
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Adding script to header is just login page

The script for the login page will be called securely.

Before </head> I need to add:

<script id='conversion_head_include' type='text/javascript' src='https://www.xxx.com/enabling/xxxxx.jsp?external=xxxxxxxxx&version=1.0'> </script> <script id='conversion_head_script' type='text/javascript'>if (typeof conversion_head_update == 'function') conversion_head_update()</script>

Before </body> I need to add:

<script id='conversion_body_script' type='text/javascript'>if (typeof conversion_body_update == 'function') conversion_body_update()</script>
9 Apr 2010, 5:25 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding script to header is just login page

Before </head> I need to add:
Those instructions are not for ZenCart...
See this tutorial and the sectiopn on "Extra Javascript for an existing file"
https://www.zen-cart.com/tutorials/index.php?article=230