CoreCommerce

In this article, you will find out how to create an app and mobile website from your CoreCommerce desktop shop.

 

Available features

With CoreCommerce and Shopgate, you are able to create your app and mobile website with the following features:

Support

Version

 

All

Import to CoreCommerce

Orders

 

Customer Account

Login with Desktop Shop Account
Login to Desktop Shop with Mobile Account
Customer Groups / Tier Pricing
Show Desktop Orders On Mobile

 



✘ / ✘

Export to Shopgate Mobile Shop

Products
Categories
Reviews

 



Sync

Delivery Status "Shipped"
Order Status "Canceled"
Stock Quantity, on Product Detail Page

 



Validate, upon Cart Changes

Coupon
Shipping Method & Price
Product Availability

 



Payments Supported

Prepayment, Cash on Delivery, Credit Card, Direct Debit, Invoice, PayPal

Notes

N/A


 

Create an API user

The first step is to create an API user to connect to the Shopgate API technology. To do this, please follow the steps below:

  1. Log in to your CoreCommerce backend.
  2. Click on Settings. Then on the Settings page, click Store API.
  3. Create a Username, Password, and XML Key. Choose a good XML Key for a secure connection. Note down your Connection URL - you will need to enter this in the next chapter. Click Save.

Now you have created an API user to connect to Shopgate.

 

Establish connections

To establish a connection between your CoreCommerce backend and your mobile shop, you need to enter your API credentials at Shopgate. Follow the steps below to make the connection:

  1. Log in to your Shopgate Admin and navigate to Integration → Install Interface.
  2. In the drop-down labeled Select a system, type CoreCommerce and select it.
  3. A popup opens. Enter the API Connection URL, Username, Password, XML Key, and your Store Name from Chapter 1. Enter your shop URL. Click connect to establish the interface.
  4. If a connection is made successfully, a popup shown below will open. Leave all options to ON to access all features and click Save.

That's it! Now the Shopgate backend will automatically start to import product data via the newly established interface. Welcome to the mobile world 😊

 

Set up mobile redirect

To redirect mobile visitors to your mobile website, a few lines of code need to be modified in your main template file. Follow the steps below to do so.

  1. Log in to your Shopgate Admin and navigate to Integration → Credentials.
  2. Note down the Shop number.
  3. In your CoreCommerce backend navigate to Design → Google Analytics.
  4. Paste this JavaScript code (shown below) into the Google Analytics Code Field. If there is an existing Google Analytics Code, just paste this code above your Google Analytics Code.
    <!-- SHOPGATE MOBILE HEADER START -->
    <script type="text/javascript">
    var _shopgate = new Object();
    var shopgateCategory = document.getElementsByName("c")[0].value;
    var shopgateProduct = document.getElementsByName("productID")[0].value;

    _shopgate.shop_number = "YOUR SHOPGATE SHOP NUMBER";

    if (/\sg_debug=1$/.exec(document.URL) != null) {
    window.navigator = new Object({"userAgent":"RedirectBot"});
    }
    if (shopgateProduct != "") {
    _shopgate.redirect = "item";
    _shopgate.item_number = shopgateProduct;
    } else if (shopgateCategory != "") {
    _shopgate.redirect = "category";
    _shopgate.category_number = shopgateCategory;
    } else {
    _shopgate.redirect = "start";
    }

    _shopgate.host = (("https:" == document.location.protocol) ? "https://static-ssl.shopgate.com" : "http://static.shopgate.com");
    document.write(unescape("%3Cscript src='" + _shopgate.host + "/mobile_header/" + _shopgate.shop_number + ".js' type='text/javascript' %3E%3C/script%3E"));
    </script>
    <!-- SHOPGATE MOBILE HEADER END -->

  5. Replace YOUR SHOPGATE SHOP NUMBER with your shop’s number at Shopgate and Save.

That's it! Your mobile users have now been successfully redirected to your mobile shop.

 

Configure the connection

You can configure the following in your Shopgate connection to your mobile shop:

  • Choose when to get order notifications
  • Choose to turn on/off Debug mode for developers
  • Choose to turn on Advanced error logging for developers

To configure the options, click on the Actions drop-down and select Edit.

Configure your connection on the settings page below. Detailed explanations for options listed can be found below.

When should the order be transmitted? Orders can be transmitted right after they were placed or after they were paid.
Debug This enables advanced debugging for your connection and is usually used by our developers only in case you’ve got a problem.
Advanced error logging This will break all operations over your connection even on minor errors, making it easier to find the source of a problem if you have one for our developers.
API Connection URL This is the Connection URL shown in your CoreCommerce admin.

API Username

API Password

API XML Key

These are the API credentials you created in your CoreCommerce admin.

API Store Name This is the Store Name shown in your CoreCommerce admin.
Shop Base URL The base URL to your shop, e.g. https://www.myawesomeshop.com

 

Frequently Asked Questions

How do I update my mobile shop?

You do not need to manually update your mobile shop. Whenever there is an update in the Shopgate software, we will update your shop via API method automatically.

 

Was this article helpful?
0 out of 0 found this helpful