Installation in xt:Commerce 3.0.4 SP2.1
Datei checkout_confirmation.php
// PP Ratenkauf start if($_GET['PayerID']!='' AND $_SESSION['reshash']['TOKEN']!='' AND (strtoupper($_SESSION['reshash']["ACK"])=="SUCCESS" OR strtoupper($_SESSION['reshash']["ACK"])=="SUCCESSWITHWARNING")) { $_POST['conditions']='1'; $file = DIR_WS_CLASSES . 'paypal_ratenkauf_api.php'; if (file_exists ( $file )) { include_once ($file); } $ppi = new paypal_ratenkauf_api(); $ppi->paypalGetCustomerData(); } // PP Ratenkauf end
Einfügen nach:
//-- TheMedia Begin check if display conditions on checkout page is true if (isset ($_POST['cot_gv'])) $_SESSION['cot_gv'] = true; // if conditions are not accepted, redirect the customer to the payment method selection page