/** DIESEN CODE IN DER includes/cart_actions.php IM case 'paypal_express_checkout' VOR DEM REDIRECT AUSFUEHREN PER BROWSER **/ if($_SESSION['customer_id'] == 1){ echo '
Output _SESSION[shipping]:
';
// load all enabled shipping modules
require ('admin/includes/classes/class.storagequantity.php');
require_once (DIR_FS_INC.'xtc_collis.inc.php');
require (DIR_WS_CLASSES.'order.php');
$order = new order('',&$xtPrice);
if ($order->delivery['country']['iso_code_2'] != '') {
$_SESSION['delivery_zone'] = $order->delivery['country']['iso_code_2'];
}
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
require_once (DIR_FS_INC . 'xtc_in_array.inc.php');
require (DIR_WS_CLASSES.'shipping.php');
$shipping_modules = new shipping;
$tmp_shipping = explode(';', MODULE_SHIPPING_INSTALLED);
$tmp_class = substr($tmp_shipping[0], 0, strrpos($tmp_shipping[0], '.'));
if($tmp_class != false){
$_SESSION['shipping'] = $tmp_class.'_'.$tmp_class;
list ($module, $method) = explode('_', $_SESSION['shipping']);
if ($_SESSION['shipping'] == 'free_free') {
$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
$quote[0]['methods'][0]['cost'] = '0';
} else {
$quote = $shipping_modules->quote($method, $module);
}
if (isset ($quote['error'])) {
unset ($_SESSION['shipping']);
} else {
if ((isset ($quote[0]['methods'][0]['title'])) && (isset ($quote[0]['methods'][0]['cost']))) {
$_SESSION['shipping'] = array ('id' => $_SESSION['shipping'], 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'].' ('.$quote[0]['methods'][0]['title'].')'), 'cost' => $quote[0]['methods'][0]['cost']);
}
}
}
print_r($_SESSION['shipping']);
die('');
}