Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2006
    Location
    Cleveland
    Posts
    79
    Plugin Contributions
    0

    Adding a head tag script

    On the product page with attribute option I am trying to get a popup window to explain how to fill these option that require putting the javascript on the <head> tag. How can I accomplish that or is their another way to get popup using php?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Adding a head tag script

    Is this popup to be a clickable link to activate or an automatic popup? If you want a clickable link you can look at the shopping cart help link for an example to clone.

  3. #3
    Join Date
    Jul 2006
    Location
    Cleveland
    Posts
    79
    Plugin Contributions
    0

    Re: Adding a head tag script

    Yes it is a clickable text. What I did on the Demo side I found the head area in common/html_header.php I added the javascript just before the </head> tag
    Then on the option I aded the javascript line <A HREF="javascript:deldatePopUp()">Click here for More info</a> where deldate in the head tag refer you to that page as a pop up. It worked eventhough when I edit the option what is showing is <a herf= and in the gray non editable part the rest of the command. That scared me even though it is working I did not move it to live awaiting a reply if it work or will it cause an error somewhere with php.

  4. #4
    Join Date
    Jul 2006
    Location
    Cleveland
    Posts
    79
    Plugin Contributions
    0

    Default Re: Adding a head tag script

    Were can I find the shopping cart help link?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Adding a head tag script

    Quote Originally Posted by gardengate View Post
    Were can I find the shopping cart help link?
    Put something in your cart and go to the shopping cart page.
    At the top you'll see a small text-link to [help?]
    That link opens a popup
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jul 2006
    Location
    Cleveland
    Posts
    79
    Plugin Contributions
    0

    Default Re: Adding a head tag script

    Yes that exactly what i am looking for how do I clone it? Sorry I am a real newbie.

  7. #7
    Join Date
    Jul 2006
    Location
    Cleveland
    Posts
    79
    Plugin Contributions
    0

    Default Re: Adding a head tag script

    I created a pop-up file.php similar to info_shopping_cart.php and define it in filenames.php How do i call it using javascript?

 

 

Similar Threads

  1. v151 Adding script between <head> tags
    By Togfather in forum General Questions
    Replies: 2
    Last Post: 29 Jul 2014, 06:07 AM
  2. Add Script to Head in only 1 EZ page
    By timhersh in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2012, 03:55 PM
  3. Mysterious code before <head> tag
    By snaple in forum General Questions
    Replies: 4
    Last Post: 27 Mar 2012, 05:56 PM
  4. Need to add code below </head> tag and above <body> tag in product page
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2010, 07:53 PM
  5. <head tag on specific catagory page
    By cleverpork in forum General Questions
    Replies: 0
    Last Post: 12 Jun 2007, 06:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg