Create a New Order Form Template

Order Form templates define the look and feel of the shopping cart when your customers place orders. You can easily create or customize your own order form templates.

If you plan to customize a shipped system theme or order form template, we strongly recommend that you use Git™ to copy the appropriate GitHub™ repository. This method often allows you to ensure compatibility with each new WHMCS release without the need to manually edit files. For more information, see Create Customizations with Git and Update Customizations with Git.

Create a New Order Form Template

To create a custom order form template:

1. Create a new template folder.

Create a custom folder to store the custom order form template files.

  • Using a custom folder ensures that they are not overwritten or lost during upgrades. When you upgrade, the system updates any changes to order form template files that WHMCS ships, so upgrades may overwrite direct changes to those files.
  • Folder names must be alphanumeric, all lowercase, and may use underscores. The folder name will be the order form template name.

2. Create the theme.yaml file.

Create a theme.yaml file within the new directory and use it to specify this template’s parent.

For example, to set Standard Cart as the parent theme, use this example as the file’s contents:

config:
parent: standard_cart
We strongly recommend using parent relationships to create your order form template.

3. Create and update the desired template files.

Create and update the desired template files within your custom folder. For each step in the ordering process that you want to customize:

  1. Identify the order form template file that controls the step you want to customize. For a list of template files and their functions, see Template Files.
  2. Copy that order form template file from the defined parent order form template to the new directory.
  3. Make the desired changes to the copy within the custom order form template directory.

4. Activate the template.

When you are ready to activate the template, select it in the desired location:

System Default

To use this order form template as the system default, select it for Default Order Form Template in the Ordering tab at Configuration () > System Settings > General Settings.

The Ordering tab in General Settings.

For more information, see [Change the Default Order Form)[/products/product-tutorials/change-the-default-order-form).

Product Group

To use this order form template for specific product groups, select it for Order Form Template for that product group at Configuration () > System Settings > Products/Services.

Editing a Product Group.

For more information, see Product Groups and [Create a Product Group)[/products/product-tutorials/create-a-product-group).

Last modified: October 30, 2024