Beachten Sie, dass die angegebenen Zeilenangaben je nach zustzlich installierten Plugins
und/oder individuellen Anpassungen abweichen knnen.

---


#nderung der Datei ./admin/includes/column_left.php

Fgen Sie folgende Zeilen ein:

//protectedshops edit
	echo ('<div class="dataTableHeadingContent"><img src="images/protected-shops-logo.jpg" alt="ProtectedShops" width="16" height="16" border="" align="left"/>Protected Shops</div>');
	if(($_SESSION['customers_status']['customers_status_id'] =='0') && ($admin_access['psapi_import'] == '1'))
		echo '<div style="padding-left:16px"><a href="'.xtc_href_link('psapi_import.php').'" class="menuBoxContentLink">AGB Connect&trade;</a></div>';
//end protectedshops edit


---


#nderung in der Datei ./admin/start.php (ca. zeile 20)

Suchen Sie folgende Zeile:

require_once 'includes/modules/carp/carp.php';

und fgen Sie DARUNTER folgende Zeilen ein:

//protectedshops edit
require(DIR_WS_CLASSES.'protectedshops_api.php');
require(DIR_WS_CLASSES.'protectedshops_contentimporter.php');
//end protectedshops edit


#Weitere nderungen in der Datei ./admin/start.php (ca. zeile 91) 

Suchen Sie folgende Zeilen:

          <td class="main" valign="top">
            xt:Commerce News
          </td>
        </tr>
      </table>
    </td>
  </tr>

und fgen Sie DARUNTER folgende Zeilen ein:

<!--protectedshops edit-->
<?php
$protectedshops_contentimporter = new protectedshops_contentimporter();
$protectedshops_username = $protectedshops_contentimporter->getConfigurationValue("psapi_username");
$protectedshops_password = $protectedshops_contentimporter->getConfigurationValue("psapi_password");
$protectedshops_shopid = $protectedshops_contentimporter->getConfigurationValue("psapi_shopid");
$protectedshops_documents = array("AGB","Widerruf","Versandinfo","Datenschutz","Batteriegesetz","Impressum");
if($protectedshops_username && $protectedshops_password && $protectedshops_shopid){
	$api = new protectedshops_api($protectedshops_username, $protectedshops_password);
	$update = $api->getModulUpdate($protectedshops_shopid, PROJECT_VERSION, "XTCommerce");
	if($update){
		echo "<tr><td><div style='font-size:110%; background:#fed; border:1px solid #ff0000; padding:5px; color:#ff0000;'>";
		echo $update;
		echo "</div></td></tr><tr><td>&nbsp;</td></tr>";
	}
	foreach($protectedshops_documents as $key => $documentName){
		$nocheck = $api->needupdate($documentName, $protectedshops_shopid);
		if($nocheck)
			break;
	}
	if($nocheck){
		echo "<tr><td><div style='font-size:110%; background:#fed; border:1px solid #ff0000; padding:5px; color:#ff0000;'>";
		echo "<img src='images/protected-shops-icon-achtung.png' alt='Achtung' border='' align=''/> <strong>Achtung: </strong>Einer Ihrer Protected Shops Rechtstexte ist nicht mehr aktuell. Sie k&ouml;nnen die Rechtstexte <a href='psapi_import.php' title='Rechtstexte neu importieren'>hier neu importieren</a>!";
		echo "</div></td></tr><tr><td>&nbsp;</td></tr>";
	}
}
?>
<!--end protectedshops edit-->


---


Folgende nderungen sind nur notwendig, wenn Sie das Protected Shops Bewertungssystem nutzen.
Beachten Sie dass das Bewertungssystem eingestellt wurde und nur noch fr auslaufende Bewertungssystem-Vertrge zur Verfgung steht.



#nderung der Datei ./admin/includes/column_left.php

Suchen Sie nach folgender Zeile:

echo ('<div class="dataTableHeadingContent"><img src="images/protected-shops-logo.jpg" alt="ProtectedShops" width="16" height="16" border="" align="left"/>Protected Shops</div>');

und fgen Sie DARUNTER folgende Zeilen ein:

	if(($_SESSION['customers_status']['customers_status_id'] =='0') && ($admin_access['psapi_rating'] == '1'))
		echo '<div style="padding-left:16px"><a href="'.xtc_href_link('psapi_rating.php').'" class="menuBoxContentLink">Bewertungen</a></div>';


---


#nderungen in der Datei ./checkout_success.php (ca. zeile 96)
Suchen Sie folgende Zeile:

$smarty->display(CURRENT_TEMPLATE.'/index.html');

und fgen Sie DARUNTER folgende Zeilen ein:

//protectedshops edit
require(DIR_WS_CLASSES.'protectedshops_ratingapi.php');
$amount_query = xtc_db_query("select value from ".TABLE_ORDERS_TOTAL." where orders_id='".$last_order."' AND class='ot_total' LIMIT 1");
$amount_result = $gv_result = xtc_db_fetch_array($amount_query);
$protectedshops_ratingapi = new protectedshops_ratingapi($orders['orders_id'], round($amount_result['value']));
//end protectedshops edit


---


#nderung in der Datei ./templates/{TEMPLATENAME}/source/boxes.php (ca. zeile 15)

Suchen Sie folgende Zeile:

include(DIR_WS_BOXES . 'categories.php');

und fgen Sie DARUNTER folgende Zeilen ein:

//protectedshops edit
include(DIR_WS_BOXES . 'protectedshops_rating_widget.php');
//end protectedshops edit
