Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6339791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:42:54+00:00 2026-05-24T19:42:54+00:00

I am actually customizing product details page with the help of http://virtuemart.net/documentation/Developer_Manual/Modifying_the_Layout.html this page.

  • 0

I am actually customizing product details page with the help of http://virtuemart.net/documentation/Developer_Manual/Modifying_the_Layout.html this page. I need to include some external and internal JavaScript.But don’t know were to add script.Please some one help me to do this.

To modify product details page . i just worked in following file components/com_virtuemart/themes/default/templates/product_details/flypage.tbl.php.

Virtuemart version is VirtueMart 1.1.9 stable

Joomla Version is Joomla! 1.5.15 Stable

Thanks In advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:42:55+00:00Added an answer on May 24, 2026 at 7:42 pm

    Based on your responses in the comments here is the answer:

    //This line defines what JavaScript file you wish to add, change it as needed.
    $myJsFile = JURI::Base() . 'templates/my_template_name/js/myJsFile.js';
    
    //this line fetchs the jdocument object which is needed to add items to the head (amongst other things)
    $document =& JFactory::getDocument(); //Drop the & if PHP5
    
    //This line adds the previously setup JS url
    $document->addScript($myJsFile);
    

    If you want to add or something custom like IE conditional tags then see here for more info: http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page on how to use this object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am customizing the pie chart given on the raphael site below link http://raphaeljs.com/pie.html
Actually i'm working in a project which need print a test page to a
Actually I am new to jquery as well as web designing Now I need
Actually I am working on this for the last 3 or 4 weeks but
Actually ,i am working on a livechat application its works fine.This application is tabbed
Actually this is my code: echo <pre>; // get current vars $p1 = isset($_GET['p1'])
Actually i am a VB6 developer, switching to VB 2010 (VB.NET), in visual basic
actually, i'm developing a web template using ASP.NET and C#. i have a listview
Actually I am in need of counting the visitors count for a particular document.
Actually I am having one registration form & one settings page. After entering some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.