【发布时间】:2015-11-12 18:46:58
【问题描述】:
我们正在尝试在我们的购物车模板中添加一个新的 .TPL 文件,我们已经完成了所有操作,但是当我们尝试访问时:
site.com/cart?a=newfile
它不起作用,有什么方法可以让 WHMCS 将新文件视为相关模板的一部分?
我尝试为我的模板创建一个自定义注册页面。
谢谢
【问题讨论】:
标签: whmcs
我们正在尝试在我们的购物车模板中添加一个新的 .TPL 文件,我们已经完成了所有操作,但是当我们尝试访问时:
site.com/cart?a=newfile
它不起作用,有什么方法可以让 WHMCS 将新文件视为相关模板的一部分?
我尝试为我的模板创建一个自定义注册页面。
谢谢
【问题讨论】:
标签: whmcs
如果您的目标是创建自定义注册页面,我建议您继续使用 whmcs 默认模板,而不是创建自己的模板。
在您的自定义注册页面中:
-if you want to customize the style,
you can do that by just editing css and html within viewcart.tpl.
-if you want to addcustom field and inputs into your custom registration form,
using in Admin area of whmcs Setup-> Custom Client Fields section,
you can add various of inputs with validation.
-if you want to some action on the registration event,
use this hook to catch the event and take your action,
it will fire whenever someone registers from your website :
【讨论】: