开发者

Drupal's Ubercart redirecting to a custom order complete/thank you page

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜