eCommerce Platform (ECP)

Connect with your mobile customers using Shopgate.

xt:Commerce 3

Available for the following platforms:
Shopgate Connect * Shopgate Go


xt:Commerce is available as a shopping cart system at Shopgate. By setting up the Shopgate plugin for your xt:Commerce 3 shop, you will get these features straight into your mobile shop and apps:

Supported Version Import to xt:Commerce
3.0.4 +   Orders
Sync Export to Shopgate Mobile Shop
Delivery Status "Shipped"
Order Status "Canceled"
Stock Quantity on Product Detail page


Customer Account Validate, upon Cart Changes
Login with Desktop Shop Account
Login to Desktop Shop with Mobile Account
Customer Groups/Tier Pricing
Show Desktop Orders on Mobile

Shipping Method
Payment Method
Product Availability

Supported Payments Notes

Cash on Delivery
Direct Debit

Customized text option is available upon configuration.

Product and brand searches done in a search engine on a mobile device are now redirected to the shop's mobile website.

In this article, you will find everything you need to set up the Shopgate plugin for your xt:Commerce 3 shop.

Install the Shopgate plugin

Download the plugin

Download the plugin here and extract the contents of the zip file. This should give you 4 folders: adminincludeslang, and shopgate.

Upload the plugin to your server

You need an FTP client tool to copy the plugin into your xt:Commerce shop. Plenty of FTP programs can be found on the internet. In this article, we are using FileZilla.

  1. Connect FileZilla or another FTP program to your server.
  2. Navigate to the Shopgate plugin you just extracted from the previous step. Select the files and drag them to your shop's main directory.
  3. If a dialog appears asking you to overwrite files, select overwrite, check all checkboxes (marked as [2] on the image), and click OK.

Set file permissions

It’s necessary to set file permissions to the "temp" and "config" folders on your server. To do so,

    1. Navigate to the /shopgate/shopgate_library folder on your server and select both the temp and config folders. Right-click on your selection and open the "Change file attributes" dialog by clicking File permissions....
    2. Enter the numeric value "774*" into the input field. Make sure the checkbox "Recurse into subdirectories" is enabled and "Apply to all files and directories" is selected as the option. Click OK to finish the upload.
      * If you cannot save your changes or configurations, set file permissions to 777.

Adjust codes

In order for the Shopgate plugin to work in your xt:Commerce system, a few lines of codes need to be added to your xt:Commerce backend. For detailed descriptions on how to modify codes in your shop's backend folders, click here.

Please modify all files listed below. Copy the marked codes and paste them into the corresponding lines in your file. Line numbers in the following code snippets; however, refer to an "unmodified" version of files. If you already modified your files, the line numbers may vary. Only the highlighted parts need to be added to the files.

The paths are relative to your shop’s base folder. E.g. if your xt:Commerce has been installed at /public_html/catalog/, then the path of includes/filenames.php refers to /public_html/catalog/includes/filename.php.

Also, keep in mind that the default folder name admin is used below. If you have renamed your admin folder, please locate the files in that directory.

part 1
  • Open the file lang/german/admin/german.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
define('TEXT_ACCOUNTING','Zugriffseinstellungen für:');
/******* SHOPGATE **********/
include_once rtrim(DIR_FS_CATALOG,"/").'/shopgate/base/lang/german/admin/german.php';
/******* SHOPGATE **********/
//Dividers text for menu
define('BOX_HEADING_LOCATION_AND_TAXES','Land / Steuer');
part 2
  • Open the file lang/english/admin/english.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
define('TEXT_ACCOUNTING','Admin-access for:');
/******* SHOPGATE **********/
include_once rtrim(DIR_FS_CATALOG,"/").'/shopgate/base/lang/english/admin/english.php';
/******* SHOPGATE **********/
//Dividers text for menu
define('BOX_HEADING_MODULES', 'Modules');
define('BOX_HEADING_LOCALIZATION', 'Languages/Currencies');
define('BOX_HEADING_TOOLS', 'Tools');
define('BOX_HEADING_LOCATION_AND_TAXES', 'Location / Tax');
define('BOX_HEADING_CUSTOMERS', 'Customers');
define('BOX_HEADING_CATALOG', 'Catalog');
part 3
  • Open the file includes/database_tables.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
/******** SHOPGATE **********/
/******** SHOPGATE **********/
part 4
  • Open the file admin/orders.php
  • Copy the marked codes below, and past them at the corresponding position in your file.
  • Save the file.
/******* SHOPGATE **********/
include_once rtrim(DIR_FS_CATALOG,"/").'/shopgate/base/admin/orders.php';
/******* SHOPGATE **********/
part 5
  • Open the file admin/includes/column_left.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
 if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['whos_online'] == '1')) echo '<a href="' .xtc_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink"> -' . BOX_WHOS_ONLINE . '</a><br>';
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['csv_backend'] == '1')) echo '<a href="' .xtc_href_link('csv_backend.php') . '" class="menuBoxContentLink"> -' . BOX_IMPORT . '</a><br>';

/******** SHOPGATE **********/
include_once rtrim(DIR_FS_CATALOG,"/").'/shopgate/base/admin/includes/column_left.php';
/******** SHOPGATE **********/

echo ('<div class="dataTableHeadingContent"><b>'.BOX_HEADING_GV_ADMIN.'</b></div>');
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['coupon_admin'] == '1')) echo '<a href="' .xtc_href_link(FILENAME_COUPON_ADMIN, '', 'NONSSL') . '" class="menuBoxContentLink"> -' . BOX_COUPON_ADMIN . '</a><br>';
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['gv_queue'] == '1')) echo '<a href="' .xtc_href_link(FILENAME_GV_QUEUE, '', 'NONSSL') . '" class="menuBoxContentLink"> -' . BOX_GV_ADMIN_QUEUE . '</a><br>';
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['gv_mail'] == '1')) echo '<a href="' .xtc_href_link(FILENAME_GV_MAIL, '', 'NONSSL') . '" class="menuBoxContentLink"> -' . BOX_GV_ADMIN_MAIL . '</a><br>';
part 6
  • Open the file admin/includes/application_top.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
/******** SHOPGATE **********/
/******** SHOPGATE **********/
// define the database table names used in the project
part 7
  • Open the file admin/includes/functions/general.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
function xtc_remove_order($order_id,$restock=false){
$order_query= xtc_db_query("select products_id, products_quantity from ".TABLE_ORDERS_PRODUCTS." where orders_id = '".xtc_db_input($order_id)."'");
while($order= xtc_db_fetch_array($order_query)){
xtc_db_query("update ".TABLE_PRODUCTS." set products_quantity = products_quantity + ".$order['products_quantity']// [...] Zeile gekürzt
xtc_db_query("delete from ".TABLE_ORDERS." where orders_id = '".xtc_db_input($order_id)."'");
xtc_db_query("delete from ".TABLE_ORDERS_PRODUCTS." where orders_id = '".xtc_db_input($order_id)."'");
xtc_db_query("delete from ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES." where orders_id = '".xtc_db_input($order_id)."'");
xtc_db_query("delete from ".TABLE_ORDERS_STATUS_HISTORY." where orders_id = '".xtc_db_input($order_id)."'");
xtc_db_query("delete from ".TABLE_ORDERS_TOTAL." where orders_id = '".xtc_db_input($order_id)."'");
/******** SHOPGATE **********/
xtc_db_query("delete from ".TABLE_SHOPGATE_ORDERS." where orders_id = '".xtc_db_input($order_id)."'");
/******** SHOPGATE **********/
part 8
  • Open the file includes/header.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
/******** SHOPGATE **********/
include_once DIR_FS_CATALOG.'/shopgate/base/includes/header.php';
/******** SHOPGATE **********/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html <?php echo HTML_PARAMS; ?>>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

/******** SHOPGATE **********/
echo $shopgateJsHeader;
/******** SHOPGATE **********/
part 9
  • Open the file includes/modules/product_info.php
  • Copy the marked codes below, and paste them at the corresponding position in your file.
  • Save the file.
/******* SHOPGATE **********/
include_once DIR_FS_CATALOG.'/shopgate/base/includes/header.php';
/******* SHOPGATE **********/
//include needed functions

Install the plugin

  1. Login in to the admin backend of your shop.
  2. Select Payment Systems from the menu under Modules.
  3. Choose Shopgate from the list of all payment modules and click Install in the top right corner.
  4. If installed correctly, the Install button will disappear, and the Uninstall and Edit buttons will appear. Scroll down on the menu bar on the left. Shopgate should now be listed here. If the “Shopgate” menu does not appear right away, reload the page. Your plugin is now installed successfully in your xt:Commerce backend.
  5. Click Shopgate > Settings on the left menu bar to open the configuration page for the Shopgate plugin. Leave this page open - we will explain how to find the required info. 

Establish connections

After the Shopgate plugin has been installed successfully, two simple tasks need to be completed to connect your mobile shop at Shopgate to your shop's backend: to enter API credentials in your shop's backend, and to enter your shop's URL in your Shopgate's admin page.

Get API credentials

  1. Log in to your Shopgate Admin.
  2. Click Integration from the menu bar, then select Install Interface.
  3. In the drop-down labeled "Select system", type "xt:Commerce 3" and select it.
  4. A pop-up will open. Look for Customer number, Shop number, API key, and Alias under 2. Configure. These are the API credentials the plugin needs to authenticate at the Shopgate backend. Leave this page open - we will come back to enter the URL (explained in 2.2 Establishing connection).
  5. Copy the Customer number, Shop number, API key, and Alias, and paste them individually into the plugin configuration page you left open from the last chapter. The rest of the options can be configured later. (This is explained in Chapter 4. Configuring the Plugin). Click Save.

Connect your shop to Shopgate

  1. Go back to the pop-up window at your Shopgate merchant page (step 4 above).
  2. Under "3. Enter URL", enter the URL of your shop, ideally starting with “https://”. For example: Click Connect to establish the interface.
  3. If a connection is made successfully, a popup shown below will open. Here you will be able to assign jobs for your first connection. We recommend leaving all assignments to ON at this time. Click Save.

Congratulations! Now you should see the progress bar running, and the Shopgate backend automatically filling your mobile shop with your products. Depending on how many products you have, the import process can take anywhere from a few minutes to a few hours. Welcome to the mobile world!


Update an existing plugin

Before updating your Shopgate plugin to a newer version, make sure to check if your shop uses a customized version of the Shopgate plugin. If this is the case, a generic plugin update will NOT work for your shop.

You are using a customized version if:

  • You have contacted Shopgate about making a third party plugin to work in your mobile shop, or about adding a special feature or function.
  • Shopgate has sent you an adapted version of plugin.
  • The plugin file you installed has "adaption" in the name.

Once you know if you are using a customized Shopgate plugin or not, follow the instructions below to update it:

Generic Plugin Customized Plugin
  1. Uninstall the Shopgate payment module.
  2. Download the latest version of the plugin.
  3. Upload it to your server.
  4. Set file permissions.
  5. Install the Shopgate plugin. (You can skip the section titled "adjust the codes." The codes do not need to be adjusted every time you update the plugin.)

If that doesn't work, follow these steps:

Make sure not to delete any files on your shop server prior to updating the plugin.

That's it! Now you have successfully updated your Shopgate plugin to the latest version.


Configure the plugin

You can configure your Shopgate plugin on the configuration page (Shopgate > Settings) on your xt:Commerce admin.

SHOPGATE + Connection Settings
Setup multiple Shopgate marketplaces Click this if you want to map each language of your shop to a separate mobile shop that you have registered at Shopgate. Every shop has its own credentials to connect with.
Customer number Your customer number that is presented to you every time you create an interface in the Shopgate merchant area.
Shop number The shop number of your mobile store, provided by Shopgate.
API key The “password” that the plugin uses to be able to communicate with the Shopgate-MerchantAPI on a secure channel.
Mobile Redirect
Shop alias The subdomain of, e.g. This is where your mobile website can be found. This is used as a fallback if no CNAME is configured.
CNAME A subdomain of your own domain that points to your mobile website, e.g. You’ll need to configure this on your server.
Redirected languages Select the languages the redirect to the mobile website should be active for.
Exporting Categories and Products
Language Choose the language the products should be exported in.
Currency Choose the currency your products should be exported in.
Country Choose the country your products should be exported in.
Tax zone for Shopgate Choose the tax zone your products will be exported for. This will calculate the tax rates to be exported for your products.
Reverse category sort order Choose Yes if categories in your mobile shop appear to be sorted upside down.
Reverse products sort order Choose Yes if products in your mobile shop appear to be sorted upside down.
Products description Choose between the short description, the long description, or a combination of both to be used for exporting your products to Shopgate.
Price group for Shopgate Choose the price group that products will be exported for to Shopgate.
Export the “New” category Set the internal identifier for the virtual category “New products." When exporting to the mobile website, it is exported as a real category using the specified internal identifier. Please note that this value is fine in most cases and therefore should not be changed. It also does not influence the appearance of the category on the mobile website.

Export product options as text field

Enter the id of a product option to create a text field on a product detail page. Separate the options with a comma, but do not enter a comma at the end of the list.

For example, if you sell customized canvas, and you entered the ids for "Height" and "Length," your customers will see two added text fields: one for Height and one for Length. They can then enter a height and length of their choice when they order a canvas.

Importing Orders
Customer group Choose the group assigned to customers on incoming Shopgate orders.
Shipping method Choose the shipping method applied to incoming Shopgate orders.
Shipping not blocked Set the status to be assigned to incoming Shopgate orders that are not blocked for shipping.
Shipping blocked Set the status to be assigned to incoming Shopgate orders that are blocked for shipping.
Shipped Select the status you set on orders that have been shipped. This is used to synchronize the shipping status of orders with Shopgate.
Order Confirmation Mail It’s possible to send order confirmation emails after importing an order. These emails are sent out of your shop. Choose Yes if you want this feature to be activated; choose No if not.
Shipping Confirmation Mail Choose Yes if you want Shopgate to send a shipping confirmation mail after the shipping status has been transmitted to Shopgate. Choose No if not.
Cancelled Select the status you set on orders that have been canceled. This is used to synchronize the cancellation status of orders with Shopgate.
Display names for payment methods Display the payment methods in the names of your own choice. See details here.
System Settings
Shop system encoding Choose the encoding of your system. This is usually “ISO-8859-15” for xt:Commerce 3.
Shopgate server Choose between the “Live” or the “Playground” Shopgate servers for API communication. Alternatively, you can provide a “Custom” Shopgate API URL.
Custom Shopgate server URL If you chose "Custom" in the drop-down menu box above, provide a custom URL to the Shopgate API here.
Facebook Pixel Tracking for Desktop Shop
If you want to use Facebook Pixel for your xt:Commerce 3 Desktop Shop, please contact App Marketing.
View Content Event Choose Activate or Deactivate.
Add To Cart Event Choose Activate or Deactivate.
Purchase Event Choose Activate or Deactivate.


Frequently Asked Questions

How can I replace the code name of a payment on an order's detail page?

On an order's detail page of your mobile shop, a code name is shown for each payment method. For example, "AUTHN_CC" is shown if a customer has paid with a credit card via, and "COD" is shown if a customer selected "cash on delivery."

If you would prefer to display different names for your payment methods, you can now use the payment mapping feature in your xt:Commerce admin. To do so, follow the steps here:

  1. In your xt:Commerce admin, find the Shopgate entry on the left and click Settings.
  2. In the section labeled "Importing orders", find "Display names for payment methods".
  3. To map your display names, enter "Code name"="your display name" and separate each payment with a semicolon. For example, enter
    AUTHN_CC=Credit card via Authorize;COD=Cash on delivery

Use the table below to find the code names of your payments.

Code name Description Code name Description
ACCRD_INS Installment via Accarda PAYONE_IDL iDEAL via PAYONE
ACCRD_INV Invoice via Accarda PAYONE_INV Invoice via PAYONE
AUTHN_CC Credit card via PAYONE_KLV Klarna invoice via PAYONE
BARZAHLEN Pay in store via Barzahlen PAYONE_PP PayPal via PAYONE
BILLSAFE Invoice via Billsafe PAYONE_PRP Prepayment via PAYONE
BRAINTR_CC Credit card via Braintree PAYONE_SUE SOFORT Überweisung via PAYONE
CHASE_CC Credit card via Chase Paymentech PAYPAL PAYPAL
CMPTOP_CC Credit card via Computop PAYU PayU
CMPTOP_DBT Direct debit via Computop PP_WSPP_CC Credit card via PayPal Website Payments Pro
CMPTOP_PP PayPal via Computop PPAL_PLUS PayPal Plus
COD Cash on Delivery PREPAY Prepayment
COLL_STORE Collection at store REALEX_CC Credit card via Realex
CONCAR_CC Credit card via ConCardis (DirektLink) SAGEPAY_CC Credit card via SagePay
CYBRSRC_CC Credit card via CyberSource SAGEPAY_PP PAYPAL via SagePay
DEBIT Direct debit SHOPGATE Shopgate payments
DT_CC Credit card via DataTrans SIX_CC Credit card via SIX Saferpay (External)
DTCASH_CC Credit card via DataCash SIX_IDEAL iDEAL via SIX Saferpay
EWAY_CC Credit card via eWAY SIX_PP PayPal via SIX Saferpay
FRSTDAT_CC Credit card via FirstData US SKRILL_CC Credit card via Skrill (External)
HDLPAY_CC Credit card via HeidelPay SKRILL_DBT Direct debit via Skrill
HDLPAY_SUE HeidelPay (SOFORT Überweisung) SKRILL_IDL iDEAL via Skrill
HIPAY Credit card via HiPay (exteral) SKRILL_SUE SOFORT Überweisung via Skrill
INVOICE INVOICE (Own Settlement) SPONE_DBT Direct debit via SEPAone
KLARNA_INV Invoice via Klarna STRIPE_CC Credit card via Stripe
MASTPAY_CC Credit card via Masterpayment SUE SOFORT Überweisung
MASTPAY_PP PAYPAL via Masterpayment TELECSH_CC Telecash
MASTPAY_SUE Masterpayment (SOFORT Überweisung) TRNSFST_CC Credit card via TransFirst
MSTPAY_INV Invoice via Masterpayment UPAID_MCM MasterPass
MWS Amazon Payments (Own - APA) USAEPAY_CC Credit card via USA ePay
OGONE_CC Credit card via Ogone WCARD_DBT Direct debit (External) via Wirecard (Checkout Page)
PAY4ONE_CC Credit card via Pay4one WCARD_INV Invoice via Wirecard (Checkout Page)
PAYJUNC_CC Credit card via PayJunction WCARD_PP PayPal via Wirecard (Checkout Page)
PAYMRW_DBT Direct debit via Paymorrow WCARD_SUE SOFORT Überweisung via Wirecard (Checkout Page)
PAYMRW_INV Invoice via Paymorrow WCARDS_CC Credit card (External) via Wirecard (Checkout Seamless)
PAYOL_INS Installment via Payolution WCARDS_DBT Direct debit (External) via Wirecard (Checkout Seamless)
PAYOL_INV Invoice via Payolution WCARDS_PP PayPal via Wirecard (Checkout Seamless)
PAYONE_CC Credit card via PAYONE WCARDS_SUE SOFORT Überweisung via Wirecard (Checkout Seamless)
PAYONE_DBT Direct debit via PAYONE WIRECRD_CC Credit card (External) via Wirecard (Checkout Page)
PAYONE_GP Giropay via PAYONE WORLDLINE Credit card via Worldline (External)


Please note:

*The plugin is no longer actively developed by Shopgate and is therefore no longer adapted to new versions.

Was this article helpful?
Can't find what you're looking for?
Let us help you—submit a support ticket.
Contact Support