While using ubercart I need to insert some javascript tracking codes to the order complete/thank you page the user sees after checking out an order. Problem is, there 开发者_JAVA百科is no .tpl file for this so I'd like to know if there's a way of redirecting users to a custom page I would like to build with all my js inside.
Sure there is, page.tpl.php is the output. You can add php to the bottom of the page with something like, if request_uri() == complete (or whatever your thank you page is), then print some js tracking code.
Refresh your theme/site cache and it should be good to go.
精彩评论