Support Center

Connecting to JooCart

Follow

 

JooCart is available as an OpenCart extension on Shopgate.

If your shop uses JooCart, please install the Shopgate plugin for OpenCart in your shop backend, and add a few lines of code to the "shopgate/api.php" file. For supported features, please refer to the OpenCart instruction.

 

In this article, you will find instructions to set up the Shopgate plugin for your JooCart shop. 

 

Topics covered in this article:

  1. Installing the Shopgate Plugin
  2. Updating an existing Shopgate plugin
  3. Understanding the plugin configurations

 

1. Installing the Shopgate Plugin

1.1 Uploading the plugin

Please follow the instructions in Connecting to OpenCart and finish chapters 1.1 to 1.3.

 

1.2 Modifying the "shopgate/api.php" file

In order for your JooCart extension to work in your Shopgate mobile shop, a few lines of code need to be added in the source file shopgate/api.php on your FTP server. Follow the steps below:

  1. On your FTP server, click the folder Shopgate and open the file api.php

  2. Copy the highlighted code and paste it right after the line ob_start();. Note that the line numbers vary for each shop.
    ob_start();
    define('_JEXEC', 1);
    define('DS', DIRECTORY_SEPARATOR);
    if (file_exists(dirname(_FILE_) . '/../../../defines.php'))
    { include_once dirname(__FILE__) . '/../../../defines.php'; }
    if (!defined('_JDEFINES'))
    { define('JPATH_BASE', dirname(__FILE__) . "/../../.."); require_once JPATH_BASE.'/includes/defines.php'; }
    require_once JPATH_BASE.'/includes/framework.php';
    // Instantiate the application.
    $app = JFactory::getApplication('site');
    // Initialise the application.
    $app->initialise();
  3. Save the changes, and upload the file back to the FTP server if necessary.

 

1.3 Continuing with the plugin configurations

Please continue with the rest of the instructions in the OpenCart manual, starting from Chapter 1.4 Activating the plugin in OpenCart. Complete all the steps until you finish Chapter 2. Establishing connections.

Now you have successfully set up your mobile shop with Shopgate.

 

2. Updating an existing Shopgate plugin

To update an existing Shopgate plugin, please follow the steps to update the plugin for OpenCart.

 

3. Understanding the plugin configurations

For detailed explanations of your Shopgate plugin, please read Understanding the OpenCart plugin configurations.

Comments