WGS One Step Checkout Template

From WHMCS Global Services Module Documentation
Jump to: navigation, search

About WHMCS One Step Checkout Orderform Template

WHMCS One Step Checkout Template is basically the WHMCS Onepage order form that is designed in a way to boost the checkout process of your WHMCS. With our one step checkout template, you can bypass the default 5 Steps of the WHMCS order form two just one.


How to install One Step Checkout Orderform template?

  1. Log in to your client area https://whmcsglobalservices.com/members/clientarea.php and download the One Step Checkout Module.
  2. Extract the zip folder.
  3. Upload WhmcsOneStepCheckout folder to WHMCS (whmcs_root/templates/orderforms/).
  4. Upload addon "WhmcsOneStepCheckout" folder to WHMCS (whmcs_root/modules/addons/).

How to activate WGS One Step Checkout with WHMCS?

Let's configure the addon module with your WHMCS.

  1. Login as WHMCS admin and then Go to Setup -> Addon Modules. Afterward, find One Step Checkout and press the Activate button.
  2. Enter your module license key.
  3. Enable/Disable to delete the DB module tables, when deactivating the module.
  4. Assign user(s), who can access this module.

One Step Checkout WHMCS.png

Setting Up Language Variables

We have used default WHMCS language variable in our one step checkout orderform. But only few are customized, here are details:

  • $_LANG['wgsOnePageThisDoman'] = "this domain ";
  • $_LANG['wgsOnePageContactAdmin'] = " Please contact with whmcs administrator for same.";
  • $_LANG['wgsOnePageHaveDomain'] = "This product have domain required please add domain Or there is domain in cart will assign that domain. you can manage it later.";
  • $_LANG['wgsOnePageAllowDomainReg'] = " Please ask whmcs admin to allow domain registration.";
  • $_LANG['wgsOnePageRemovePromoCode'] = "Are you sure you want to remove promo code?";
  • $_LANG['wgsOnePageRegTransferDomain'] = "Register Domain/Transfer Domain";
  • $_LANG['wgsOnePageChooseProductGroup'] = "Choose Product Group";
  • $_LANG['wgsOnePageSelectProductGroup'] = " --Select Product Group-- ";
  • $_LANG['wgsOnePageChoosePlan'] = "Choose Your Plan";
  • $_LANG['wgsOnePageShowLess'] = "show less!";
  • $_LANG['wgsOnePagePrefferedTld'] = "Preffered tld is not available.";
  • $_LANG['wgsOnePageManageDomainProduct'] = "Manage Domain with Product";
  • $_LANG['wgsOnePageManageDomainOption1'] = "Choose Prefered Action For Domain";
  • $_LANG['wgsOnePageManageDomainOption2'] = "Remove Domain From Product";
  • $_LANG['wgsOnePageDomainRequired'] = "Domain Required";
  • $_LANG['wgsOnePageDomainAssignedAlready'] = "Domain Already assigned to this product. try to remove and then reassign.";
  • $_LANG['wgsOnePageSignSignup'] = "Sign In / Sign Up";
  • $_LANG['wgsOnePagePromoCode'] = "Promo Code";
  • $_LANG['wgsOnePageAssignDomainError'] = "Assign domain to your hosting services to complete the order";
  • $_LANG['wgsOnePageRemoveCart'] = "Remove";
  • $_LANG['wgsOnePageSelectProduct'] = "Select Product Addon";

You need to add the above-shared language variables under the lang/overrides/english.php

In case you need to add in other languages follow the same above procedure and manually change the text fields on the right side according to your language.

How to Set Payment Gateways for a Specific Country?

With one step checkout orderform template, WHMCS admin can define specific payment gateways for a specific country. It autodetects IP via Geolocation and get the country, payment gateways according to that country will automatically get active on our orderform template.


Go to WHMCS Admin -> Addons -> One Step Checkout

WHMCS One Step Checkout Orderform Admin Panel.png


Select Gateway Switcher

WHMCS - One Step Checkout.png


Select Payment Gateway for which you want to assign the country.

WHMCS - One Step Checkout Payment Gateway.png


Click on Add Country & select countries you want to set this payment gateway and Save Changes.

WHMCS - One Step Checkout (1).png


How to Set Payment Gateways icons?

You can easily set payment gateway icons with our one step checkout template and give orderform a more appealing


Go to WHMCS Admin -> Addons -> One Step Checkout

WHMCS One Step Checkout Orderform Admin Panel.png



Select Gateway Image Setting

WHMCS - One Step Checkout Payment Gateway Icons Setup Area.png


Here you can set an image to a specific payment gateway.

WHMCS - One Step Checkout Payment Gateway Icons Setup.png


In case you want to set an image for a payment gateway, select browse image under the payment gateway name.

WHMCS - One Step Checkout Payment Gateway Icons Selector.png


Select the image and save the settings.

Image Directory in which you need to upload the image before assigning here: addons\WhmcsOneStepCheckout\assets\paymentgateway


How to add product contents?

To make the products view slider exactly the same as the One Step Checkout Product Slider, you need to add the contents in the following way.

Shopping Cart - Whmcs Global Services (3).png

You need to add the contents under the Span tags. Follow the screenshot below.

WHMCSProductsdsdsServices.png

How to upgrade to Version 1.0.2?

You can easily upgrade the One Step Checkout Orderform with the new version.

  • Take a backup of your whmcs before starting the upgrade.
  • Extract the zip folder.
  • Upload WhmcsOneStepCheckout folder to WHMCS (whmcs_root/templates/orderforms/).
  • Upload addon "WhmcsOneStepCheckout" folder to WHMCS (whmcs_root/modules/addons/).
  • Add following language variables under lang/overrides/english.php

$_LANG['wgsOnePageAssignDomainError'] = "Assign domain to your hosting services to complete the order";

$_LANG['wgsOnePageRemoveCart'] = "Remove";

$_LANG['wgsOnePageSelectProduct'] = "Select Product Addon";

And similarly in other languages.

  • Click on the Upgrade Database in Admin menu

In case of any custom style changes, take a backup of your style.css and add your custom code in the new Style.css file.