Probleme avec socolissimo et oscoommerce

Fermé
tomd04310_2 Messages postés 1 Date d'inscription dimanche 20 février 2011 Statut Membre Dernière intervention 20 février 2011 - 20 févr. 2011 à 12:39
Bonjour,
Je fait un site oscommerce et j'ai une erreur que j'arrive pas à résoudre :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/2/d310155916/htdocs/wsb5649497001/boutique/catalog/ext/modules/shipping/socolissimos/socolissimos.class.php on line 27


voici le code

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
Released under the GNU General Public License

@package SO COLISSIMO
@author Olivier B.
Support by mail : olivier@smartmarseille.com
Skype : delete13_fr

Ce module est diffuse gratuitement :

Vous pouvez nous contacter pour tout developpement ulterieur ; SoColissimo version Liberte soColissimo Flebilite TNT (WebService), Mondial Relay (WebService), GLS etc...

Nous sommes specialise dans les modules d'expeditions, de paiement, et toutes taches difficiles a realiser !

Demonstration du module soColissimo Liberté : http://osc.eurocashsa.com

Date : 01/09/2010 - Par : Delete - Version Initiale
Modifie : 07/11/2010 - Par : Delete - Version Finale OpenSource
*/

class so_colissimos
{
protected $_debug;

public function __construct($language = 'FR', $debug = false)
{
$this->_language = $language;
$this->_debug = $debug;
$this->_path = 'ext/modules/shipping/socolissimos' ;
$this->_images = $this->_path . '/images' ;
$this->_merchantId = MODULE_SHIPPING_SOCOLISSIMOS_MERCHANT_ID ;
$this->_merchantKey = MODULE_SHIPPING_SOCOLISSIMOS_MERCHANT_KEY ;
$this->_url = 'http://ws.colissimo.fr/pudo-fo/storeCall.do' ; // URL Prod
$this->_urlKo = tep_href_link(FILENAME_CHECKOUT_SHIPPING) ;
$this->_urlOk = tep_href_link(FILENAME_CHECKOUT_SHIPPING) ;
}

public function path($file = false)
{
return $this->_path ? sprintf('%s/%s', $this->_path, $file) : $this->_path ;
}

public function image($file = 'socolissimo.png')
{
return($this->_images . '/' . $file) ;
}

public function init()
{
global $order, $sendto, $cart, $customer_id ;

$shipping = new shipping ;

$quotes = $shipping->quote('socolissimos', 'socolissimos');

$tax = $quotes[0]['tax'] ;
$cost = $quotes['0']['methods']['0']['cost'] ? $quotes['0']['methods']['0']['cost'] : 0 ;

$relais = preg_match('/Oui|True/i', MODULE_SHIPPING_SOCOLISSIMOS_RELAIS) ? 1 : 0 ;
$delais = intval(MODULE_SHIPPING_SOCOLISSIMOS_DELAI) ? MODULE_SHIPPING_SOCOLISSIMOS_DELAI : '0' ;
$weight = preg_match('/kg/i', MODULE_SHIPPING_SOCOLISSIMOS_WEIGHT_UNIT) ? (int)($cart->show_weight() * 1000) : (int)$cart->show_weight() ;
$version = '3.0' ;

...
...


si quelqu'un a une petite idee je suis preneur
merci
thomas