...
Code Block |
---|
if ($_SESSION['customers_status']['customers_status_graduated_prices'] == 1) include (DIR_WS_MODULES.FILENAME_GRADUATED_PRICE); |
Datei
...
Code Block |
---|
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();
} |
Einfügen nach:
Code Block |
---|
//-- 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 |
Datei shopping_cart.php
Code Block |
---|
$file = DIR_WS_CLASSES . 'paypal_ratenkauf_api.php'; if (file_exists ( $file )) { include_once ($file); } $ppi = new paypal_ratenkauf_api(); $smarty->assign('PAYPAL_RATENKAUF_INFO',$ppi->renderRatenkaufInfoBox($_SESSION['cart']->show_total(),$_SESSION['currency'],'DE')); |
...
Code Block |
---|
$selection = $payment_modules->selection(); |
Datei checkout_confirmation.php
1.
Code Block |
---|
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(); } |
...