Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在使用 ubercart 时,我需要在用户签出订单后看到的订单完成/感谢页面中插入一些 javascript 跟踪代码。问题是,没有 .tpl 文件,所以我想知道是否有办法将用户重定向到我想用我的所有 js 构建的自定义页面。
当然有,page.tpl.php 是输出。您可以将 php 添加到页面底部,例如,如果 request_uri() == complete(或任何您的感谢页面),然后打印一些 js 跟踪代码。
刷新您的主题/站点缓存,应该很好。