*/ if (isset($_SESSION['paypal_warten'])) { $smarty->assign('info_message', $_SESSION['paypal_warten']); //Tomcraft - 2009-12-08 - fixed duplicate error messages in shopping cart } else { if (isset($_GET['info_message']) && xtc_not_null($_GET['info_message'])) { $smarty->assign('info_message', str_replace('+', ' ', encode_htmlspecialchars($_GET['info_message']))); } if (isset($o_paypal) && is_object($o_paypal)) { $smarty->assign('BUTTON_PAYPAL', $o_paypal->build_express_checkout_button()); } ## PayPal require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalPayment.php'; $paypal_cart = new PayPalPayment('paypalcart'); if ($paypal_cart->enabled === true) { $smarty->assign('BUTTON_PAYPAL', $paypal_cart->checkout_button()); if (isset($_GET['payment_error'])) { include_once DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/paypalcart.php'; $error = $paypal_cart->get_error(); $smarty->assign('info_message', $error['error']); } } $smarty->assign('BUTTON_RELOAD', xtc_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART)); $smarty->assign('BUTTON_CHECKOUT', '<a href="' . xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . xtc_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'); } // EOF - Tomcraft - 2009-10-03 - Paypal Express Modul } else { // empty cart $cart_empty = true; //if ($_GET['info_message']) // $smarty->assign('info_message', str_replace('+', ' ', encode_htmlspecialchars($_GET['info_message'])));