从头开始定制WHMCS订单模板; nothign出现

问题描述 投票:0回答:1

我正在从头开始创建自定义WHHMCS订单模板。我创建了一个文件夹neworderform并将其放入/whmcs/templates/orderforms。我在其中放置了文件cart.php,它在“常规设置”>“订购”下显示为新主题,但是当我进入http://example.com/cart.php?carttpl=neworderform时,我只得到一个空白页,看不到文件的内容。

我需要一些最小数量的模板才能使其正常工作吗?现在,它基本上是一个“ hello world”文件。

whmcs
1个回答
0
投票

我将复制现有的订购表格,例如“ web20cart”,并清空其文件内容。为了您的信息,模板文件使用tpl而不是php。


0
投票

为什么不尝试使用预构建的WHMCS订单模板。我对one page checkout orderforms for WHMCS用户有一些建议。如果您想看看它们,请转到:https://whmcsglobalservices.com/custom-template/one-step-checkout-whmcs-orderform-template/

© www.soinside.com 2019 - 2024. All rights reserved.