Jump to content

Add Javascript to these three pages


motion2082

Recommended Posts

Hi guys,

 

What is the best way to add Javascript code to

 

1) the ‘thank  you’ page that follows or completes a purchase.
2) the ‘thank  you’ page that follows or completes an account creation
3) the ‘thank  you’ page that follows or completes a Contact Us submission

 

Regards,

Motion

Link to comment
Share on other sites

Hi Motion,

 

2 efficient of ways I can think of are.

 

1st use the addJS functinon in setMedia of each controller you use on the specific pages

 

2nd on header.tpl add the script tag using a smarty if checking the page name eg.

{if $page_name == 'order-confirmation' || $page_name == ... }<script src='...'></script>{/if}
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...