[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * paypal EC button display template 4 * 5 * @package paymentMethod 6 * @copyright Copyright 2003-2007 Zen Cart Development Team 7 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 8 * @version $Id: tpl_ec_button.php 6528 2007-06-25 23:25:27Z drbyte $ 9 */ 10 11 $paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True'); 12 if ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)) { 13 // If they're here, they're either about to go to PayPal or were 14 // sent back by an error, so clear these session vars. 15 unset($_SESSION['paypal_ec_temp']); 16 unset($_SESSION['paypal_ec_token']); 17 unset($_SESSION['paypal_ec_payer_id']); 18 unset($_SESSION['paypal_ec_payer_info']); 19 20 include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/paypalwpp.php'; 21 ?> 22 <div id="PPECbutton" class="buttonRow"> 23 <a href="<?php echo zen_href_link('ipn_main_handler.php', 'type=ec', 'SSL', true, true, true); ?>"><img src="<?php echo MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG ?>" alt="<?php echo MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT; ?>" /></a> 24 </div> 25 <?php 26 } 27 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |