PDA

View Full Version : OSCMAX 2.5 Cant edit customers info (no update button)



Mark Brandon
06-22-2011, 03:35 AM
Hi
I cant update edit customer details. No update button showing or footer.

I have included the last bit of source code of the admin customers.php?page=1&cID=20&action=edit

I need to change Options customer group. There is no way to save the changes made.
If some one could help me or point me in the right direction, I would much apreciate it.

<td class="main" colspan="2">


<input type="radio" name="customers_shipment_settings" value="1">&nbsp;&nbsp;Set shipping modules for the customer&nbsp;&nbsp;<input type="radio" name="customers_shipment_settings" value="0" CHECKED>&nbsp;&nbsp;Use settings from Group or Configuration</td>


</tr>
There is no more code below this line

pgmarshall
06-22-2011, 07:48 AM
If you have no footer then php may have crashed whilst loading the page. Can you post a screenshot? Regards,

Mark Brandon
06-22-2011, 09:27 AM
603

Thanks for your time
its also the same in admin english

pgmarshall
06-22-2011, 10:15 AM
Which Shipping Module have you installed? The page appears to be crashing when it get to this section of the page. Is it one of the default ones or have you installed one from osCommerce?

Regards,

Mark Brandon
06-22-2011, 11:48 PM
I installed colissimoregion it works fine. (French regions) I have had to adapt it slightly but only by grouping certain departements together. I use this on other stores and works ok.
When i go to customers groups,click on insert new group or edit i get to the pages concerned, but cant save the edits either, again no save button.
However add new customer works ok and i have the create button.
Obviously phone order works ok
I use mainly the French files as everything has to be bi and later tri lingual. (When i have finished tidying up all the french files i will post them) their is a lot of stuff missing.

pgmarshall
06-23-2011, 01:08 AM
Hi Mark,

Any language pack work would be very gratefully received - we are aware that the French Pack is partially complete (and probably has a number of poor translations) so anything to make this better would really help.

Can you turn on php error messaging to see what is causing the crash on your customers.php page ... Open admin/includes/application_top.php and find near the top of the file.


error_reporting(E_ALL & ~E_NOTICE & ~'E_DEPRECATED');

and comment out this line


// error_reporting(E_ALL & ~E_NOTICE & ~'E_DEPRECATED');

Post the error message back here (or screenshot again) ... I will take a look for you.

Regards,

Mark Brandon
06-23-2011, 05:56 AM
Thanks for your time


/catalog/admin/customers.php

Warning:session_save_path(): open_basedir restriction in effect. File(/tmp) is not withinthe allowed path(s): (/customers/***/***/httpd.www:/customers/***/***/httpd.private:/customers/***/***/tmp:/customers/***:/var/www/diagnostics:/usr/share/php)in /customers/***/***/httpd.www/catalog/admin/includes/functions/sessions.phpon line 147 Warning: session_start(): Cannot send session cache limiter -headers already sent (output started at /customers/***/***/httpd.www/catalog/admin/includes/functions/sessions.php:147)in /customers/***/***/httpd.www/catalog/admin/includes/functions/sessions.phpon line 100



Warning:constant(): Couldn't find constant 20 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant d***ey in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant mark in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant [email protected]***.be in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant 1 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant 0 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant 21 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant A1 constr in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant Constructeurs in/customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.php online 20 Warning: constant(): Couldn't find constant Belgium in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant 2011-06-22 09:05:04 in/customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.php online 20 Warning: constant(): Couldn't find constant 2011-06-22 09:42:24 in/customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.php online 20 Warning: constant(): Couldn't find constant 2011-06-23 12:11:21 in/customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.php online 20 Warning: constant(): Couldn't find constant 9 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20 Warning: constant(): Couldn't find constant 0 in /customers/***/***/httpd.www/catalog/admin/includes/classes/object_info.phpon line 20

ridexbuilder
06-23-2011, 06:20 AM
[Use the code button!]

Warning:session_save_path(): open_basedir restriction in effect. File(/tmp) is not within
the allowed path(s): (/customers/***/***/httpd.www:/customers/***/***/httpd.private:/customers/***/***/tmp:/customers/***:/var/www/diagnostics:/usr/share/php)in /customers/***/***/httpd.www/catalog/admin/includes/functions/sessions.php
on line 147
Now it becomes easy to see that it's a server environment issue..

ridexbuilder
06-23-2011, 06:24 AM
Go to Administrator, Sessions and remove the '/' from 'tmp', ensuring that you have this directory available at catalog level, as well as catalog/youradmin level.

[This may be related to an old, old bug that I mentioned, whereby this /tmp variable is being read, even though sessions are set to database not file.]

EJ

pgmarshall
06-23-2011, 10:57 AM
Don't worry too much about those Warning messages ... they are not causing the crash. Can you click the edit customer button to get to the page where you are going to change the customer ... there will be a load of Warnings (at the top of the page about object_info.php) ... but lower down where you are expecting to see the button to "save" there will hopefully be an Error message.

If there is ... post it here.

Regards,

pgmarshall
06-23-2011, 11:11 AM
The Warnings are because the code should check if the constant is defined before finding out what it is! (My fault!)

Anyway - fix is here: r1481 - oscmax2 - osCmax - osCommerce Maximized - Google Project Hosting (http://code.google.com/p/oscmax2/source/detail?r=1481) - you don't need to put this in as it will only cause Warnings (not errors) ...

So if you can just post the error which I suspect is at the bottom of the page when you press "edit"

Regards,

Mark Brandon
06-23-2011, 11:08 PM
Thanks pg
Whilst on the edit page, if i change in Address the country, the page refreshes and yesss the buttons comes back update and cancel, Mais, in options see below code, newsletter is ok but customer group has changed from drop down text choice to a drop down No choice with no numbers and no way to implant them. here is the code once the page has refreshed.


Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in
/customers/***.com/***.com/httpd.www/catalog/admin/includes/functions/database.php
on line 99

Here is the code before page re freshes (no buttons) just under Shipping modules.
The customer group choices work fine on this page (text drop down choice)


Fatal error: Call to a member function show_weight() on a non-object in
/customers/***.com/lasure-bois.com/httpd.www/catalog/includes/modules/shipping/colissimo.php
on line 52

Thanks everybody
PS ridexbuilder is that what you want ?

ridexbuilder
06-23-2011, 11:18 PM
PS ridexbuilder is that what you want ?
Much easier to read, no? :cool:

Mark Brandon
06-23-2011, 11:30 PM
could somebody *** the domain name please
Thanks

pgmarshall
06-24-2011, 12:59 AM
Fatal error: Call to a member function show_weight() is the issue which is in colissimo.php. So you are going to need to post a link to the exact module you have installed - there are two pages of Colissimo modules at osCommerce! Or post the contents of the file (using the code button!!) Regards,

Mark Brandon
06-24-2011, 01:29 AM
Here you go pg



<?php
/*
A partir de colissimoR1.php... Francois Pons


The Exchange Project - Community Made Shopping!
osCommerce, Open Source Online Shop E-Commerce Solutions (http://www.theexchangeproject.org)


Copyright (c) 2000,2001 The Exchange Project


Released under the GNU General Public License


adaptation Stéphane GUIBOUD-RIBAUD <[email protected]>

xaglo <[email protected]>


MAJ v1.4.2 by fram 05/10/2003
MAJ v1.5 by
lepoissonrouge 19/06/2005
MAJ v1.5.2 by lepoissonrouge
20/11/2005
MAJ v1.5.2 by bacri 01/02/2007
MAJ V1.6 by THEROTH
19/04/2008
MAJ V1.7 by THEROTH 20/04/2008
MAJ V1.8 by Nekosign
05/03/2009
MAJ V1.9 by Nekosign 09/03/2010



www.oscommerce-fr.info (http://www.oscommerce-fr.info)
*/



class colissimo {
var $code, $title,
$description, $icon, $enabled;


// class constructor
function colissimo()

{
$this->code =
'colissimo';
$this->title =
MODULE_SHIPPING_COLISSIMO_TEXT_TITLE;

$this->description =
MODULE_SHIPPING_COLISSIMO_TEXT_DESCRIPTION;

$this->sort_order =
MODULE_SHIPPING_COLISSIMO_SORT_ORDER;

$this->icon = DIR_WS_ICONS .
'shipping_colissimo.gif';
$this->tax_class
= MODULE_SHIPPING_COLISSIMO_TAX_CLASS;

$this->enabled =
MODULE_SHIPPING_COLISSIMO_STATUS;

$this->num_international = 4; //Nbr de zone International
// disable the
module if the order only weight > 30
global
$PHP_SELF;
if (basename($PHP_SELF)
!= FILENAME_MODULES) {
global $cart ,
$order;
if ($this->enabled ==
true) {
/* $dest_country =
$order->delivery['country']['iso_code_2'];

if (($dest_country != 'FR') && ($dest_country != 'FX') &&
($dest_country != 'GP') && ($dest_country != 'MQ') &&
($dest_country != 'GF') && ($dest_country != 'RE') &&
($dest_country != 'YT') && ($dest_country != 'PM') &&
($dest_country != 'NC') && ($dest_country != 'PF') &&
($dest_country != 'WF') && ($dest_country != 'TF'))
{
$this->enabled =
false;

}*/
if ($cart->show_weight()
> '30') {
$this->enabled =
false;

}

}
}
}


// class methods
function quote($method = '')

{
global $order, $cart,
$shipping_weight;


$dest_country =
$order->delivery['country']['iso_code_2'];


if (($dest_country == 'FR') OR ($dest_country == 'FX') OR
($dest_country == 'MC')) {



$this->quotes = array('id' =>
$this->code,

'module' => MODULE_SHIPPING_COLISSIMO_TEXT_TITLE . ' NATIONAL (' .
$shipping_weight .' Kg)');
$methods = array();


if
(tep_not_null($this->icon))
$this->quotes['icon'] =
tep_image($this->icon, $this->title);



$auto= constant('MODULE_SHIPPING_COLISSIMO_R1R5');
$total
= $cart->show_total();


$cost = constant('MODULE_SHIPPING_COLISSIMO_NATIONAL');
$cost1
= constant('MODULE_SHIPPING_COLISSIMOR1_NATIONAL');
$cost2 =
constant('MODULE_SHIPPING_COLISSIMOR2_NATIONAL');
$cost3 =
constant('MODULE_SHIPPING_COLISSIMOR3_NATIONAL');
$cost4 =
constant('MODULE_SHIPPING_COLISSIMOR4_NATIONAL');
$cost5 =
constant('MODULE_SHIPPING_COLISSIMOR5_NATIONAL');
$table = split("[:,]"
, $cost);
$table1 = split("[:,]" ,
$cost1);
$table2 = split("[:,]" ,
$cost2);
$table3 = split("[:,]" ,
$cost3);
$table4 = split("[:,]" ,
$cost4);
$table5 = split("[:,]" ,
$cost5);

$j="0";

$k="0";
for ($i = 0; $i < sizeof($table); $i+=2)
{

if ($shipping_weight >
$table[$i])
continue;
if (($shipping_weight <
$table[$i]) && ($j== '0'))
{
if($auto=="True"){

if(($total<=50)&&($k=="0")){
$methods[]
= array('id' => "R1", 'title' => MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE,
'cost' => $table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>50)
&&
($total<=200)&&($k=="0")){
$methods[] =
array('id' => "R2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE,
'cost' => $table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>200)
&&
($total<=400)&&($k=="0")){
$methods[] =
array('id' => "R3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE,
'cost' => $table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>400)
&&
($total<=600)&&($k=="0")){
$methods[] =
array('id' => "R4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE,
'cost' => $table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>600)&&($k=="0")){
$methods[]
= array('id' => "R5", 'title' => MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE,
'cost' => $table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}
}else{
if
( $method == '' || $method == "R0" ) {
$methods[] =
array('id' => "R0", 'title' => MODULE_SHIPPING_COLISSIMOR_TEXT_TITLE,
'cost' => $table[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "R1" ) {
$methods[] = array('id'
=> "R1", 'title' => MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE, 'cost' =>
$table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "R2" ) {
$methods[] = array('id'
=> "R2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE, 'cost' =>
$table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "R3" ) {
$methods[] = array('id'
=> "R3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE, 'cost' =>
$table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "R4" ) {
$methods[] = array('id'
=> "R4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE, 'cost' =>
$table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "R5" ) {
$methods[] = array('id'
=> "R5", 'title' => MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE, 'cost' =>
$table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}
$j="2";
}
}


}



$this->quotes['methods'] =
$methods;
return $this->quotes;





}elseif(($dest_country == 'GP') OR ($dest_country == 'MQ') OR ($dest_country ==
'GF') OR ($dest_country == 'RE') OR ($dest_country == 'YT') OR ($dest_country ==
'PM')) {

if(constant('MODULE_SHIPPING_COLISSIMO_DOM_STATUS' )=="True"){




$this->quotes = array('id' =>
$this->code,

'module' => MODULE_SHIPPING_COLISSIMO_TEXT_TITLE . ' DOM (' .
$shipping_weight .' Kg)');
$methods = array();


if
(tep_not_null($this->icon))
$this->quotes['icon'] =
tep_image($this->icon, $this->title);



$auto= constant('MODULE_SHIPPING_COLISSIMO_R1R5');
$total
= $cart->show_total();


$cost = constant('MODULE_SHIPPING_COLISSIMO_DOM');
$cost1 =
constant('MODULE_SHIPPING_COLISSIMOR1_DOM');
$cost2 =
constant('MODULE_SHIPPING_COLISSIMOR2_DOM');
$cost3 =
constant('MODULE_SHIPPING_COLISSIMOR3_DOM');
$cost4 =
constant('MODULE_SHIPPING_COLISSIMOR4_DOM');
$cost5 =
constant('MODULE_SHIPPING_COLISSIMOR5_DOM');
$table = split("[:,]" ,
$cost);
$table1 = split("[:,]" ,
$cost1);
$table2 = split("[:,]" ,
$cost2);
$table3 = split("[:,]" ,
$cost3);
$table4 = split("[:,]" ,
$cost4);
$table5 = split("[:,]" ,
$cost5);

$j="0";

$k="0";
for ($i = 0; $i < sizeof($table); $i+=2)
{

if ($shipping_weight >
$table[$i])
continue;
if (($shipping_weight <
$table[$i]) && ($j== '0'))
{
if($auto=="True"){

if(($total<=50)&&($k=="0")){
$methods[]
= array('id' => "DOMR1", 'title' =>
MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE, 'cost' => $table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>50)
&&
($total<=200)&&($k=="0")){
$methods[] =
array('id' => "DOMR2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE,
'cost' => $table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>200)
&&
($total<=400)&&($k=="0")){
$methods[] =
array('id' => "DOMR3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE,
'cost' => $table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>400)
&&
($total<=600)&&($k=="0")){
$methods[] =
array('id' => "DOMR4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE,
'cost' => $table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>600)&&($k=="0")){
$methods[]
= array('id' => "DOMR5", 'title' =>
MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE, 'cost' => $table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}
}else{
if
( $method == '' || $method == "DOMR0" ) {
$methods[]
= array('id' => "DOMR0", 'title' => MODULE_SHIPPING_COLISSIMOR_TEXT_TITLE,
'cost' => $table[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "DOMR1" ) {
$methods[] = array('id'
=> "DOMR1", 'title' => MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE, 'cost'
=> $table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "DOMR2" ) {
$methods[] = array('id'
=> "DOMR2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE, 'cost'
=> $table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "DOMR3" ) {
$methods[] = array('id'
=> "DOMR3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE, 'cost'
=> $table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "DOMR4" ) {
$methods[] = array('id'
=> "DOMR4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE, 'cost'
=> $table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "DOMR5" ) {
$methods[] = array('id'
=> "DOMR5", 'title' => MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE, 'cost'
=> $table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}
$j="2";
}
}


}



$this->quotes['methods'] =
$methods;
return $this->quotes;


}


}elseif(($dest_country == 'NC') OR ($dest_country == 'PF') OR ($dest_country ==
'WF') OR ($dest_country == 'TF')) {


if(constant('MODULE_SHIPPING_COLISSIMO_TOM_STATUS' )=="True"){


$this->quotes = array('id' =>
$this->code,

'module' => MODULE_SHIPPING_COLISSIMO_TEXT_TITLE . ' TOM (' .
$shipping_weight .' Kg)');
$methods = array();


if
(tep_not_null($this->icon))
$this->quotes['icon'] =
tep_image($this->icon, $this->title);



$auto= constant('MODULE_SHIPPING_COLISSIMO_R1R5');
$total
= $cart->show_total();


$cost = constant('MODULE_SHIPPING_COLISSIMO_TOM');
$cost1 =
constant('MODULE_SHIPPING_COLISSIMOR1_TOM');
$cost2 =
constant('MODULE_SHIPPING_COLISSIMOR2_TOM');
$cost3 =
constant('MODULE_SHIPPING_COLISSIMOR3_TOM');
$cost4 =
constant('MODULE_SHIPPING_COLISSIMOR4_TOM');
$cost5 =
constant('MODULE_SHIPPING_COLISSIMOR5_TOM');
$table = split("[:,]" ,
$cost);
$table1 = split("[:,]" ,
$cost1);
$table2 = split("[:,]" ,
$cost2);
$table3 = split("[:,]" ,
$cost3);
$table4 = split("[:,]" ,
$cost4);
$table5 = split("[:,]" ,
$cost5);

$j="0";

$k="0";
for ($i = 0; $i < sizeof($table); $i+=2)
{

if ($shipping_weight >
$table[$i])
continue;
if (($shipping_weight <
$table[$i]) && ($j== '0'))
{
if($auto=="True"){

if(($total<=50)&&($k=="0")){
$methods[]
= array('id' => "TOMR1", 'title' =>
MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE, 'cost' => $table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>50)
&&
($total<=200)&&($k=="0")){
$methods[] =
array('id' => "TOMR2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE,
'cost' => $table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>200)
&&
($total<=400)&&($k=="0")){
$methods[] =
array('id' => "TOMR3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE,
'cost' => $table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>400)
&&
($total<=600)&&($k=="0")){
$methods[] =
array('id' => "TOMR4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE,
'cost' => $table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}elseif(($total>600)&&($k=="0")){
$methods[]
= array('id' => "TOMR5", 'title' =>
MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE, 'cost' => $table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
$k++;
}
}else{
if
( $method == '' || $method == "TOMR0" ) {
$methods[]
= array('id' => "TOMR0", 'title' => MODULE_SHIPPING_COLISSIMOR_TEXT_TITLE,
'cost' => $table[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "TOMR1" ) {
$methods[] = array('id'
=> "TOMR1", 'title' => MODULE_SHIPPING_COLISSIMOR1_TEXT_TITLE, 'cost'
=> $table1[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "TOMR2" ) {
$methods[] = array('id'
=> "TOMR2", 'title' => MODULE_SHIPPING_COLISSIMOR2_TEXT_TITLE, 'cost'
=> $table2[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "TOMR3" ) {
$methods[] = array('id'
=> "TOMR3", 'title' => MODULE_SHIPPING_COLISSIMOR3_TEXT_TITLE, 'cost'
=> $table3[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "TOMR4" ) {
$methods[] = array('id'
=> "TOMR4", 'title' => MODULE_SHIPPING_COLISSIMOR4_TEXT_TITLE, 'cost'
=> $table4[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}if ( $method ==
'' || $method == "TOMR5" ) {
$methods[] = array('id'
=> "TOMR5", 'title' => MODULE_SHIPPING_COLISSIMOR5_TEXT_TITLE, 'cost'
=> $table5[$i+1] +
MODULE_SHIPPING_COLISSIMO_HANDLING);
}
$j="2";
}
}


}



$this->quotes['methods'] =
$methods;
return $this->quotes;

}


}elseif(constant('MODULE_SHIPPING_COLISSIMO_INT_ST ATUS')=="True"){


$this->icon = DIR_WS_ICONS .
'shipping_colissimoINT.gif';
$this->quotes =
array('id' =>
$this->code,

'module' => MODULE_SHIPPING_COLISSIMO_TEXT_TITLE . ' International (' .
$shipping_weight .'
Kg)',

'methods' => array());


if
(tep_not_null($this->icon))
$this->quotes['icon'] =
tep_image($this->icon, $this->title);


if ($this->tax_class >
0)
$this->quotes['tax'] =
tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'],
$order->delivery['zone_id']);


$dest_country =
$order->delivery['country']['iso_code_2'];

$dest_zone = 0;
for ($i = 1; $i <=
$this->num_international; $i ++) {
$countries_table =
constant('MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_ ' . $i);
$country =
split("[, ]", $countries_table);
if ( in_array($dest_country, $country
) ) {
$dest_zone = $i;

break;
}

}
if ($dest_zone == 0)
{
$this->quotes['error'] =
MODULE_SHIPPING_COLISSIMO_INT_INVALID_ZONE;
return
$this->quotes;
}


$table = split("[:,]" ,
constant('MODULE_SHIPPING_COLISSIMO_INT_COST_' .
$dest_zone));
$cost =
-1;
for ($i = 0, $n = sizeof($table); $i <
$n; $i+=2) {
if ($shipping_weight <= $table[$i]) {

$cost = $table[$i+1] + MODULE_SHIPPING_COLISSIMO_HANDLING +
SHIPPING_HANDLING;

break;
}
}


if ($cost == -1)
{
$this->quotes['error'] =
MODULE_SHIPPING_COLISSIMO_INT_UNDEFINED_RATE;
return
$this->quotes;
}


$this->quotes['methods'][] =
array('id' =>
$this->code,
'title' =>
MODULE_SHIPPING_COLISSIMO_INT_TEXT_WAY . ' ' .
$order->delivery['country']['title'],

'cost' => $cost + MODULE_SHIPPING_COLISSIMO_HANDLING +
SHIPPING_HANDLING);


return $this->quotes;



}




}
function check()
{
$check = tep_db_query("select
configuration_value from " . TABLE_CONFIGURATION . " where configuration_key =
'MODULE_SHIPPING_COLISSIMO_STATUS'");
$check =
tep_db_num_rows($check);


return $check;

}



function install() {

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, set_function, date_added) VALUES ('Activer
Module Colissimo', 'MODULE_SHIPPING_COLISSIMO_STATUS', 'True', 'Activer /
Désactiver Colissimo sans perdre les valeurs changés', '6', '0',
'tep_cfg_select_option(array(\'True\', \'False\'), ',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Frais fixes',
'MODULE_SHIPPING_COLISSIMO_HANDLING', '0', 'Frais fixes (emballage) pour
colissimo', '6', '0', now())");
tep_db_query("insert into
" . TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, use_function, set_function, date_added) values ('Classe de taxe',
'MODULE_SHIPPING_COLISSIMO_TAX_CLASS', '0', 'Appliquer le taux de taxe suivant
sur les frais de livraison.', '6', '0', 'tep_get_tax_class_title',
'tep_cfg_pull_down_tax_classes(', now())");
tep_db_query("insert
into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Ordre de tri',
'MODULE_SHIPPING_COLISSIMO_SORT_ORDER', '0', 'Ordre de tri pour l\'affichage (Le
plus petit nombre est montré en premier).', '6', '0', now())");



tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo',
'MODULE_SHIPPING_COLISSIMO_NATIONAL', '0.500:5.55, 1:6.80, 2:7.75, 3:8.70,
5:10.60, 7:12.50, 10:15.35, 15:17.45, 30:23.75', 'Tarif TTC Colissimo sans
assurance', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo R1',
'MODULE_SHIPPING_COLISSIMOR1_NATIONAL', '0.500:7.85, 1:9.10, 2:10.05, 3:11.00,
5:12.90, 7:14.80, 10:17.65, 15:19.75, 30:26.05', 'Tarif TTC Colissimo R1.', '6',
'0', now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo R2',
'MODULE_SHIPPING_COLISSIMOR2_NATIONAL', '0.500:8.75, 1:10.00, 2:10.95, 3:11.90,
5:13.80, 7:15.70, 10:18.55, 15:20.65, 30:26.95', 'Tarif TTC Colissimo R2', '6',
'0', now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo R3',
'MODULE_SHIPPING_COLISSIMOR3_NATIONAL', '0.500:9.95, 1:11.20, 2:12.15, 3:13.10,
5:15.00, 7:16.90, 10:19.75, 15:21.85, 30:28.15', 'Tarif TTC Colissimo R3', '6',
'0', now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo R4',
'MODULE_SHIPPING_COLISSIMOR4_NATIONAL', '0.500:11.15, 1:12.40, 2:13.35, 3:14.30,
5:16.20, 7:18.10, 10:20.95, 15:23.05, 30:29.35', 'Tarif TTC Colissimo R4', '6',
'0', now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo R5',
'MODULE_SHIPPING_COLISSIMOR5_NATIONAL', '0.500:12.35, 1:13.60, 2:14.55, 3:15.50,
5:17.40, 7:19.30, 10:22.15, 15:24.25, 30:30.55', 'Tarif TTC Colissimo R5', '6',
'0', now())");



tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, set_function, date_added) VALUES ('Activer Colissimo DOM',
'MODULE_SHIPPING_COLISSIMO_DOM_STATUS', 'True', 'Activer / Désactiver Colissimo
dans les DOM', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 1',
'MODULE_SHIPPING_COLISSIMO_DOM', '0.500:8.45, 1:12.70, 2:17.35, 3:22.00,
4:26.65, 5:31.30, 6:35.95, 7:40.60, 8:45.25, 9:49.90, 10:54.55, 15:77.75,
20:100.95, 25:124.15, 30:147.35', 'Tarif TTC Colissimo Zone OM 1 sans
assurance', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo Zone OM 1
R1', 'MODULE_SHIPPING_COLISSIMOR1_DOM', '0.500:10.75, 1:15.00, 2:19.65, 3:24.30,
4:28.95, 5:33.60, 6:38.25, 7:42.90, 8:47.55, 9:52.20, 10:56.85, 15:80.05,
20:103.25, 25:126.45, 30:149.65', 'Tarif TTC Colissimo Zone OM 1 R1', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 1 R2',
'MODULE_SHIPPING_COLISSIMOR2_DOM', '0.500:11.65, 1:15.90, 2:20.55, 3:25.20,
4:29.85, 5:34.50, 6:39.15, 7:43.80, 8:48.45, 9:53.10, 10:57.75, 15:80.95,
20:104.15, 25:127.35, 30:150.55', 'Tarif TTC Colissimo Zone OM 1 R2', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 1 R3',
'MODULE_SHIPPING_COLISSIMOR3_DOM', '0.500:12.85, 1:17.10, 2:21.75, 3:26.40,
4:31.05, 5:35.70, 6:40.35, 7:45.00, 8:49.65, 9:54.30, 10:58.95, 15:82.15,
20:105.35, 25:128.55, 30:151.75', 'Tarif TTC Colissimo Zone OM 1 R3', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 1 R4',
'MODULE_SHIPPING_COLISSIMOR4_DOM', '0.500:14.05, 1:18.30, 2:22.95, 3:27.60,
4:32.25, 5:36.90, 6:41.55, 7:46.20, 8:50.85, 9:55.50, 10:60.15, 15:83.35,
20:106.55, 25:129.75, 30:152.95', 'Tarif TTC Colissimo Zone OM 1 R4', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 1 R5',
'MODULE_SHIPPING_COLISSIMOR5_DOM', '0.500:15.25, 1:19.50, 2:24.15, 3:28.80,
4:33.45, 5:38.10, 6:42.75, 7:47.40, 8:52.05, 9:56.70, 10:61.35, 15:84.55,
20:107.75, 25:130.95, 30:154.15', 'Tarif TTC Colissimo Zone OM 1 R5', '6', '0',
now())");



tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, set_function, date_added) VALUES ('Activer Colissimo Zone OM 2',
'MODULE_SHIPPING_COLISSIMO_TOM_STATUS', 'True', 'Activer / Désactiver Colissimo
dans les TOM', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 2',
'MODULE_SHIPPING_COLISSIMO_TOM', '0.500:10.10, 1:15.20, 2:26.80, 3:38.40,
4:50.00, 5:61.60, 6:73.20, 7:84.80, 8:96.40, 9:108.00, 10:119.60, 15:177.60,
20:235.60, 25:293.60, 30:351.60', 'Tarif TTC Colissimo Zone OM 2 sans
assurance', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo Zone OM 2
R1', 'MODULE_SHIPPING_COLISSIMOR1_TOM', '0.500:12.40, 1:17.50, 2:29.10, 3:40.70,
4:52.30, 5:63.90, 6:75.50, 7:87.10, 8:98.70, 9:110.30, 10:121.90, 15:179.90,
20:237.90, 25:295.90, 30:353.90', 'Tarif TTC Colissimo Zone OM 2 R1', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 2 R2',
'MODULE_SHIPPING_COLISSIMOR2_TOM', '0.500:13.30, 1:18.40, 2:30.00, 3:41.60,
4:53.20, 5:64.80, 6:76.40, 7:88.00, 8:99.60, 9:111.20, 10:122.80, 15:180.80,
20:238.80, 25:296.80, 30:354.80', 'Tarif TTC Colissimo Zone OM 2 R2', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 2 R3',
'MODULE_SHIPPING_COLISSIMOR3_TOM', '0.500:14.50, 1:19.60, 2:31.20, 3:42.80,
4:54.40, 5:66.00, 6:77.60, 7:89.20, 8:100.80, 9:112.40, 10:124.00, 15:182.00,
20:240.00, 25:298.00, 30:356.00', 'Tarif TTC Colissimo Zone OM 2 R3', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 2 R4',
'MODULE_SHIPPING_COLISSIMOR4_TOM', '0.500:15.70, 1:20.80, 2:32.40, 3:44.00,
4:55.60, 5:67.20, 6:78.80, 7:90.40, 8:102.00, 9:113.60, 10:125.20, 15:183.20,
20:241.20, 25:299.20, 30:357.20', 'Tarif TTC Colissimo Zone OM 2 R4', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone OM 2 R5',
'MODULE_SHIPPING_COLISSIMOR5_TOM', '0.500:16.90, 1:22.00, 2:33.60, 3:45.20,
4:56.80, 5:68.40, 6:80.00, 7:91.60, 8:103.20, 9:114.80, 10:126.40, 15:184.40,
20:242.40, 25:300.40, 30:358.40', 'Tarif TTC Colissimo Zone OM 2 R5', '6', '0',
now())");



tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, set_function, date_added) VALUES ('Activer Colissimo International',
'MODULE_SHIPPING_COLISSIMO_INT_STATUS', 'True', 'Activer / Désactiver Colissimo
dans International', '6', '0', 'tep_cfg_select_option(array(\'True\',
\'False\'), ', now())");
tep_db_query("insert
into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone A (pays)',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_1', 'AT, AD, AX, BE, BG, BL, CH, CY,
CZ, DE, DK, ES, EE, FI, GB, GF, GI, GP, GR, HU, IE, IT, LT, LU, LV, MF, MQ, MT,
NL, PL, PT, RE, RO, SE, SI, SK', 'Insérer une virgule entre 2 codes ISO de pays
qui font partie de la mme zone', '6', '0',
now())");
tep_db_query("insert into " .

TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone A (poids:tarifs)',
'MODULE_SHIPPING_COLISSIMO_INT_COST_1', '1:16.05, 2:17.65, 3:21.30, 4:24.95,
5:28.60, 6:32.25, 7:35.90, 8:39.55, 9:43.20, 10:46.85, 15:53.85, 20:60.85,
25:67.85, 30:74.85', 'Tarifs Colissimo international pour les destinations de la
Zone A. ', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo Zone B
(pays)', 'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_2', 'AL, DZ, BY, BA, BG, HR,
CZ', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la męme
zone', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo Zone B
(poids:tarifs)', 'MODULE_SHIPPING_COLISSIMO_INT_COST_2', '1:19.40, 2:21.30,
3:25.75, 4:30.20, 5:34.65, 6:39.10, 7:43.55, 8:48.00, 9:52.45, 10:56.90,
15:67.10, 20:77.30', 'Tarifs Colissimo international pour les destinations de la
Zone B. ', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added) values ('Colissimo Zone C
(pays)', 'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_3', 'AF, AO, AI, AG, AM, AZ,
BJ, BM, BW, BF, BI, CM, CA, CV, CF, TD, CG, CI, CY, CJ, US, UM', 'Insérer une
virgule entre 2 codes ISO de pays qui font partie de la męme zone', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone C (poids:tarifs)',
'MODULE_SHIPPING_COLISSIMO_INT_COST_3', '1:22.50, 2:30.10, 3:39.50, 4:48.90,
5:58.30, 6:67.70, 7:77.10, 8:86.50, 9:95.90, 10:105.30, 15:128.80, 20:152.30',
'Tarifs Colissimo international pour les destinations de la Zone C. ', '6', '0',
now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone D (pays)',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_4', 'AS, AQ, AR, AW, AU, BS, BH, BD,
BB, BZ, BT, BO, BV, BR, IO, BN, KH, KY, CL, CN, CX, CC, CO, KM, CK, CR, CU, DO',
'Insérer une virgule entre 2 codes ISO de pays qui font partie de la męme zone',
'6', '0', now())");
tep_db_query("insert into
" . TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, date_added) values ('Colissimo Zone D (poids:tarifs)',
'MODULE_SHIPPING_COLISSIMO_INT_COST_4', '1:25.40, 2:38.10, 3:50.80, 4:63.50,
5:76.20, 6:88.90, 7:101.60, 8:114.30, 9:127.00, 10:139.70, 15:164.70,
20:189.70', 'Tarifs Colissimo international pour les destinations de la Zone D.
', '6', '0', now())");
tep_db_query("insert into " .
TABLE_CONFIGURATION . " (configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, set_function, date_added) VALUES ('Selection Automatique du R1 ŕ
R5', 'MODULE_SHIPPING_COLISSIMO_R1R5', 'True', 'Selon le montant du panier, il
choisit le bon recommandé', '6', '0', 'tep_cfg_select_option(array(\'True\',
\'False\'), ', now())");
}


function remove() {

tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in
('" . implode("', '", $this->keys()) . "')");
}


function keys() {
return
array('MODULE_SHIPPING_COLISSIMO_STATUS',
'MODULE_SHIPPING_COLISSIMO_HANDLING',
'MODULE_SHIPPING_COLISSIMO_TAX_CLASS',

'MODULE_SHIPPING_COLISSIMO_R1R5',
'MODULE_SHIPPING_COLISSIMO_NATIONAL',

'MODULE_SHIPPING_COLISSIMOR1_NATIONAL',

'MODULE_SHIPPING_COLISSIMOR2_NATIONAL',

'MODULE_SHIPPING_COLISSIMOR3_NATIONAL',

'MODULE_SHIPPING_COLISSIMOR4_NATIONAL',

'MODULE_SHIPPING_COLISSIMOR5_NATIONAL',
'MODULE_SHIPPING_COLISSIMO_DOM_STATUS',
'MODULE_SHIPPING_COLISSIMO_DOM',

'MODULE_SHIPPING_COLISSIMOR1_DOM',

'MODULE_SHIPPING_COLISSIMOR2_DOM',

'MODULE_SHIPPING_COLISSIMOR3_DOM',

'MODULE_SHIPPING_COLISSIMOR4_DOM',

'MODULE_SHIPPING_COLISSIMOR5_DOM',
'MODULE_SHIPPING_COLISSIMO_TOM_STATUS',
'MODULE_SHIPPING_COLISSIMO_TOM',

'MODULE_SHIPPING_COLISSIMOR1_TOM',

'MODULE_SHIPPING_COLISSIMOR2_TOM',

'MODULE_SHIPPING_COLISSIMOR3_TOM',

'MODULE_SHIPPING_COLISSIMOR4_TOM',

'MODULE_SHIPPING_COLISSIMOR5_TOM',
'MODULE_SHIPPING_COLISSIMO_INT_STATUS',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_1',
'MODULE_SHIPPING_COLISSIMO_INT_COST_1',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_2',
'MODULE_SHIPPING_COLISSIMO_INT_COST_2',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_3',
'MODULE_SHIPPING_COLISSIMO_INT_COST_3',
'MODULE_SHIPPING_COLISSIMO_INT_COUNTRIES_4',
'MODULE_SHIPPING_COLISSIMO_INT_COST_4',
'MODULE_SHIPPING_COLISSIMO_SORT_ORDER',);

}
}
?>



Thanks

pgmarshall
06-24-2011, 03:19 AM
Your issue is that this module is trying to query the weight of the cart ... but since you are in Admin - there is no cart - hence the crash. There is a check already
if (basename($PHP_SELF) != FILENAME_MODULES) { which needs extending to include the page which is crashing so try changing this to:
if ((basename($PHP_SELF) != FILENAME_MODULES) && (basename($PHP_SELF) != FILENAME_CUSTOMERS)) { It should work! I have not tested it yet ... but let me know how you get on with it. Regards,

Mark Brandon
06-24-2011, 03:34 AM
OK
I changed the line in both colissimo files colissimoregions.php and colissimo.php
IT WORKED !!!!!! :p:p:p
I greatly apreciate your time and cant thank you enough.

As soon as i have finished with the french files translations + missing define (modules)
I will post them

Take care Mark