yvotchotcho
Messages postés138Date d'inscriptionvendredi 3 juillet 2009StatutMembreDernière intervention 2 août 2014
-
12 févr. 2010 à 15:31
Bonjour, aprés avoir passé des heures et bien plus sur differents forums, mon probleme serait du au script que je vous envoie ci dessous, en effet, je n arrive pas a configurer paypal via virtuemart, la commande se passe bien mais je ne suis jamais dirigé vers paypal lorsque j ai la confirmation de la commande:
lorsque je vais via Filezila dans composant/com virtuemart/theme/defaut/template/page/checkout thankyou.tpl.php
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
* This is the page that is shown when the order has been placed.
* It is used to thank the customer for her/his order and show a link
* to the order details.
*
* @version $Id: checkout.thankyou.tpl.php 1364 2008-04-09 16:44:28Z soeren_nb $
* @package VirtueMart
* @subpackage themes
* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
<!-- Begin Payment Information -->
<?php
if( empty($auth['user_id'])) {
return;
}
if ($db->f("order_status") == "P" ) {
// Copy the db object to prevent it gets altered
$db_temp = ps_DB::_clone( $db );
/** Start printing out HTML Form code (Payment Extra Info) **/ ?>
<br />
<table width="100%">
<tr>
<td width="100%" align="center">
<?php
/**
* PLEASE DON'T CHANGE THIS SECTION UNLESS YOU KNOW WHAT YOU'RE DOING
*/
// Try to get PayPal/PayMate/Worldpay/whatever Configuration File
@include( CLASSPATH."payment/".$db->f("payment_class").".cfg.php" );
$vmLogger->debug('Beginning to parse the payment extra info code...' );
// Here's the place where the Payment Extra Form Code is included
// Thanks to Steve for this solution (why make it complicated...?)
if( eval('?>' . $db->f("payment_extrainfo") . '<?php ') === false ) {
$vmLogger->debug( "Error: The code of the payment method ".$db->f( 'payment_method_name').' ('.$db->f('payment_method_code').') '
.'contains a Parse Error!<br />Please correct that first' );
}
else {
$vmLogger->debug('Successfully parsed the payment extra info code.' );
}
// END printing out HTML Form code (Payment Extra Info)