Order Form Templates
From WHMCS Documentation
By default, the cart order process is used and so the templates are in the templates/orderforms/cart folder. Below is a breakdown of what each file is used for:
- products.tpl - Lists product categories and products
- adddomain.tpl - First step for domain registration only orders
- addons.tpl - Lists the addons a user can order for their existing packages when logged in
- configureproductdomain.tpl - Domain selection for domains attached to a product
- configproduct.tpl - Configure the product before adding to the cart eg. billing cycle, configurable options, custom fields
- configuredomains.tpl - Choose domain addons, complete custom field requirements & custom nameservers
- viewcart.tpl - Showing cart contents & checkout process
- login.tpl - Used for login for existing users
- complete.tpl - This page is showed at the end of the checkout process
Third Party Order Conversion/Affiliate Tracking
If you use a third party order conversion tracking system or affiliate system then you may need to insert a code snippet that gets run when a user completes an order. With WHMCS, you would add this to the complete.tpl template file between the ispaid section of code as shown below:
{if $ispaid} Enter any HTML code which needs to be displayed once a user has completed the checkout of their order here - for example conversion tracking and affiliate tracking scripts {/if}
You can use variables including {$orderid} {$ordernumber} and {$amount} where necessary to fill in order details.