# Installation

This article will walk you through the steps necessary to install Lagom WHMCS One Step Order Form. We will guide you carefully through the whole installation process.

# Before You Begin

  1. Make sure that the Lagom WHMCS One Step Order Form version, which you are trying to install, is compatible with your WHMCS and Lagom WHMCS Client Theme installations! Check the compatibility list here.
  2. Create a backup copy of your WHMCS files and database.

# Download Files

  1. Log in to ModulesGarden Client Area.
  2. Navigate to Products.
  3. Find "Lagom One Step Order Form" on the list.
  4. Open the "Download" tab and download the latest version of the module.

# Upload Files

  1. Extract the .zip folder that has been downloaded from the client area.
  2. Upload the /php71+/ content to your FTP server.
  3. Make sure that during the upload process all the files have been correctly uploaded and no errors occurred.

# Enter License Key

  1. When you install "Lagom One Step Order Form" for the first time, you have to rename the license_RENAME.php file. The file is located in modules/addons/LagomOrderForm/license_RENAME.php. Rename it from license_RENAME.php to license.php.
  2. Edit the previously renamed license.php file in order to provide your unique license key.
  3. Enter your license key between quotation marks as presented on below. You can find your license key in ModulesGarden client area: My Products → License Information.

# Edit Storage File Rights

  1. Set up the “storage” folder as recursively writable. This folder is available at your_whmcs/modules/addons/LagomOrderForm/.

# Set "htaccess" File Rule

  1. Open the “htaccess” file, you will find it in the main root directory.
  2. If you have fully friendly rewrite set up, you will have to paste the below rule underneath RewriteBase /:
	RewriteBase /
	RewriteRule ^order/(.*)$ order.php?m=OneStepOrder&gid=$1 [L]
  1. Otherwise, create the below rule above the WHMCS rules:
   RewriteBase /
   RewriteRule ^order/(.*)$ order.php?m=OneStepOrder&gid=$1 [L]

# Activate Addon

  1. Log in to the WHMCS admin area on your server.
  2. In the top right corner, click on “System Settings” and then choose “Addon Modules”.
  3. Activate the “Lagom One Step Order Form” addon.
  4. Press the “Configure” button and select admin role groups (these groups may differ depending on the WHMCS installation) to grant access according to your needs, then save the changes.

# Configure Product

Your product has been correctly activated and you can now proceed with its configuration.

  1. Choose Order Template
  2. Configure Layout Settings
  3. Assign Gateway Icons