shout Posted July 12, 2013 Share Posted July 12, 2013 I'm trying to create a custom order form using the internal API (http://docs.whmcs.com/API:Internal_API) The API examples are all given in PHP, but the actual cart template files are all in Smarty .tpl format and don't accept PHP. I tried renaming products.tpl to products.php, but that just gives me an empty cart. How do I tell cart.php to use a custom file instead of products.tpl for my custom order form? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted July 12, 2013 Share Posted July 12, 2013 Hello, Smarty allows the usage of PHP, as long as they are wrapped in literal tags: http://docs.whmcs.com/Template_Syntax#Using_PHP_Code_within_Templates 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.