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.
Below is a list of requirements for latest product version:
.zip
folder that has been downloaded from the client area./php71+/
content to your FTP server.license_RENAME.php
file. The file is located in modules/addons/LagomOrderForm/license_RENAME.php
. Rename it from license_RENAME.php
to license.php
.license.php
file in order to provide your unique license key.My Products → License Information
.your_whmcs/modules/addons/LagomOrderForm/
. Folder permission depend on your server configuration, so you have to try the below RewriteBase /
#one-step-order
RewriteRule ^order/(.*)$ order.php?m=OneStepOrder&gid=$1 [L]
RewriteBase /
#one-step-order
RewriteRule ^order/(.*)$ order.php?m=OneStepOrder&gid=$1 [L]
RewriteBase /
#one-step-order
RewriteRule ^store/order/(.*)$ order.php?m=OneStepOrder&gid=$1 [L]
If you are using an NGINX server, it is advised to add the below lines into its configuration file. Otherwise, the module might not work properly.
location /order {
rewrite ^/order/(.*)$ /order.php?m=OneStepOrder&gid=$1;
}
location /modules/addons/LagomOrderForm/api/ {
try_files $uri $uri/ /modules/addons/LagomOrderForm/api/index.php?$args;
}
In some cases the above code might not work well, in that situation, please use the below code instead ('break' added):
location /order {
rewrite ^/order/(.*)$ /order.php?m=OneStepOrder&gid=$1 break;
}
location /modules/addons/LagomOrderForm/api/ {
try_files $uri $uri/ /modules/addons/LagomOrderForm/api/index.php?$args;
}
Remember to adjust the above example to your WHMCS location.
The module requires the InnoDB Engine to be used by all WHMCS database tables.
Below example describes steps required for MySQL database, if you are using different databse you need to perform different steps.
show table status;
.Take a look below to check how to change the database engine.
Alternatively, you may run the below SQL query after selecing the desired database from phpMyAdmin (step "2").
ALTER TABLE `table_name` ENGINE = InnoDB
After the query has been successfully executed, the database engine of the selected database table will be changed to "InnoDB".
Below describe how to replace the engine for all tables in your WHHMCS database, at once.
MyISAM
and WHMCS_DATABASE_NAME
with the correct strings:SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;')
FROM INFORMATION_SCHEMA.TABLES
WHERE ENGINE='MyISAM'
AND table_schema = 'WHMCS_DATABASE_NAME';
CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;')
ALTER TABLE mod_invoicedata ENGINE=InnoDB;
ALTER TABLE tblaccounts ENGINE=InnoDB;
ALTER TABLE tblactivitylog ENGINE=InnoDB;
ALTER TABLE tbladdonmodules ENGINE=InnoDB;
ALTER TABLE tbladdons ENGINE=InnoDB;
ALTER TABLE tbladminlog ENGINE=InnoDB;
USE whmcs_database_name
. Final result should be similiar to below:USE WHMCS_DATABASE_NAME;
ALTER TABLE mod_invoicedata ENGINE=InnoDB;
ALTER TABLE tblaccounts ENGINE=InnoDB;
ALTER TABLE tblactivitylog ENGINE=InnoDB;
ALTER TABLE tbladdonmodules ENGINE=InnoDB;
ALTER TABLE tbladdons ENGINE=InnoDB;
ALTER TABLE tbladminlog ENGINE=InnoDB;
Your product has been correctly activated and you can now proceed with its configuration.
← Introduction Update →