xt:Commerce v3.0.4 SP2.1

Follow the following instructions below to integrate RatingChamp with your xt:Commerce v3.0.4 SP2.1:

1. Plugin download:

Download the RatingChamp plugin for xt:Commerce v3.0.4 SP2.1 and extract the files.

2. File upload:

Upload all files in the RatingChamp plugin in your shop. No files are overwritten in this process, we simply add new files and guide you through the integration of these files in the following steps.

3. Backup:

As usual when modifying your shop, make sure you have created backups of the files and database before you make any changes!

4. Database:

Execute the following MySQL-Query in the database of your shop:

ALTER TABLE `orders` ADD `ratingchamp_order_sent` varchar(11) NULL DEFAULT '0';
INSERT INTO `configuration` (`configuration_key`, `configuration_value`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
('RATINGCHAMP_API_PW', 'your account pw', '999', '3', '0000-00-00 00:00:00', NOW(), NULL, NULL),
('RATINGCHAMP_API_ACCOUNT_KEY', 'your account key', '2', '1', '0000-00-00 00:00:00', NOW(), NULL, NULL),
('RATINGCHAMP_STATUS_TO_TRANSFER', '0', '999', '4', '0000-00-00 00:00:00', NOW(), NULL, NULL),
('RATINGCHAMP_INSTALL_DATE', NOW(), '999', '4', '0000-00-00 00:00:00', NOW(), NULL, NULL);
ALTER TABLE `admin_access` ADD `ratingchamp` INT( 1 ) NULL DEFAULT '1';

5. Integration in the store Backend:

Open the file "/admin/includes/column_left.php" in your shop installation and add the following line at the bottom of the file, but before "?>":

if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['configuration'] == '1')) echo '<a href="' . xtc_href_link('ratingchamp.php', '', 'NONSSL') . '" class="menuBoxContentLink"> -RatingChamp</a><br>';

6. API-Data setup:

Open the control panel of your xt:Commerce v3.0.4 SP2.1 installation, then go to the newly created RatingChamp menu and insert your API data. You will find your API data in your RatingChamp control panel.

7. Cronjob setup:

To automatically transfer orders to RatingChamp, you need to setup a cronjob that starts the script "http://your-shore.com/ratingchamp.php". Most web hosting providers offer a cronjob service, so please contact your web hosting company in case you need assistance setting up the cronjob.

8. Integration in the store template:

After you have at least one review, you should also integrate the widget:

Open the file "\templates\your-template\index.html" and add the following code at the end of the file:

<script type="text/javascript" src="https://widget.ratingchamp.com/xxxxxx.js"></script>

Replace the xxxxx with your API-Key.

Now add this code in the place where the widget should be displayed:

<!-- RatingChampWidget START -->
<div class="RatingChampWidget sidebar-box">
<a href="https://RatingChamp.de" target="_blank" rel="nofollow">RatingChamp geprüfter Shop</a></div>
<!-- RatingChampWidget END -->

Was this answer helpful?

 Print this Article

Also Read

custom integration for php based software

The integration of RatingChamp is possible in almost every software. In this example, we will...

Modified Shop (Version 1.06 and older)

Please follow the instructions below in order to integrate RatingChamp in your...

xt:Commerce 4

1. Plugin download Download the RatingChamp plugin for xt:Commerce 4 and extract the files....

Modified Shop (V. 2.x)

Please follow the instructions below in order to integrate RatingChamp in your...

WooCommerce / Wordpress

System requirements: WordPress (min. version 3.0.0) WooCommerce (min. version 2.1.6)...