osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

4 Pages V  « < 2 3 4  
Reply to this topicStart new topic
> [Résolu] Méthode d'expédition dépendant du produit, Lettre ou Colissimo
sonicmarin
posté 23 May 2007, 09:13
Message #76


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 46
Inscrit : 2-August 06
Membre no 11378



Bon, j'y passe des nuits mais j'ai réussi à régler un des problemes, par contre maintenant quand j'essai d'acheter un produit encombrant, le site n'arrive plus à passer le checkout_shipping ... la page se réactialise à chaque fois sans résultat... ?

voici le site de production : www.france-specialites.eu/boutik/

Le seul produit encombrant pour le moment est la table bistrot que l'on voit dans la région toulonnais, zone artisanat.



--------------------
Creloaded 6.3.3 B2B avec tout plein de contributions modifiées maison
Go to the top of the page
 
katzele
posté 31 Aug 2007, 10:17
Message #77


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



Bonjour,

Quand je veux ajouter la fonction pour la tare des lettres dans /includes/classes/shipping.php

FIND
CODE
        if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {
          $shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;
        } else {
          $shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);
        }


REPLACE WITH :
CODE
      $OversizedProducts = $cart->show_oversized();
        if ( $OversizedProducts == 0 ) {
$shipping_tare_weight = SHIPPING_LETTER_WEIGHT;
        } else {
$shipping_tare_weight = SHIPPING_BOX_WEIGHT;

        }
       if ($shipping_tare_weight >= $shipping_weight*SHIPPING_BOX_PADDING/100) {
         $shipping_weight = $shipping_weight+$shipping_tare_weight;
       } else {
         $shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);
       }


J'obtiens la même erreur que Liloune
CODE
Fatal error: Call to a member function on a non-object in /home/damedesc/www/includes/classes/shipping.php on line 54


Si je ne mets pas cette fonction ça marche bien...


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
Phocea
posté 31 Aug 2007, 11:02
Message #78


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1448
Inscrit : 12-March 05
Lieu : Chuiche
Membre no 5120



Tu as fait cette etape:

http://www.oscommerce-fr.info/forum/index....rt=#entry126849
Go to the top of the page
 
katzele
posté 31 Aug 2007, 21:57
Message #79


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



Oui je viens de revérifier 2 fois, tout est fait.


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
Phocea
posté 1 Sep 2007, 12:22
Message #80


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1448
Inscrit : 12-March 05
Lieu : Chuiche
Membre no 5120



Polo avait le meme soucis:
http://www.oscommerce-fr.info/forum/index....st&p=150532

Essaye pour voir ?
Go to the top of the page
 
katzele
posté 2 Sep 2007, 16:47
Message #81


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



lui il avait cette erreur :
CODE
Fatal error: Call to undefined function: show_oversized() in d:\easyphp\www\monsite.com\shop\includes\modules\shipping\colis.php on line 53


moi j'ai ça :
CODE
Fatal error: Call to a member function on a non-object in /home/damedesc/www/includes/classes/shipping.php on line 54


ça n'est pas sur le même fichier. J'ai aussi eu celle de Polo d'ailleurs mais c'est réparé.


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
Phocea
posté 2 Sep 2007, 19:53
Message #82


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1448
Inscrit : 12-March 05
Lieu : Chuiche
Membre no 5120



La ligne 54 c'est :
$OversizedProducts = $cart->show_oversized(); ??

Si c'et le cas tu as cette erreur car l'objet $cart n'existe pas.
En ahut de la finction quote il faut la rajouter comme globale

CODE
function quote($method = '', $module = '') {
      global $cart, etc..
Go to the top of the page
 
katzele
posté 3 Sep 2007, 14:42
Message #83


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



C'était ça ! merci smile.gif
Mais alors j'ai une autre erreur que je n'avais pas vu avant ! Dans l'admin quand je veux soit créer soit éditer une commande je tombe sur une jolie erreur :

Fatal error: Call to undefined method: manualcart->show_oversized() in /home/damedesc/www/includes/modules/shipping/colis.php on line 53

je vois vaguement ce qu'il veut dire mais je ne sais le faire...


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
Phocea
posté 3 Sep 2007, 15:13
Message #84


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1448
Inscrit : 12-March 05
Lieu : Chuiche
Membre no 5120



Tu peux mettre le code de ton colis.php stp ?
Go to the top of the page
 
katzele
posté 3 Sep 2007, 18:18
Message #85


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



Je peux wink.gif

CODE
<?php
/*
$Id: colis.php,v 1.00 2005/03/07 10:37:00 Phocea $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2002 - 2003 osCommerce

Released under the GNU General Public License
*/
/********************************************************************
* Copyright (C) 2001 - 2003 TheMedia, Dipl.-Ing Thomas Plänkers
*       http://www.themedia.at & http://www.oscommerce.at
*
*                    All rights reserved
*
* This program is free software licensed under the GNU General Public License (GPL).
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with this program; if not, write to the Free Software
*    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
*    USA
*
*********************************************************************/

class colis {
   var $code, $title, $description, $icon, $enabled, $num_frc, $types;

// class constructor
   function colis() {
     global $order, $cart;

     $this->code = 'colis';
     $this->title = MODULE_SHIPPING_FRC_TEXT_TITLE;
     $this->description = MODULE_SHIPPING_FRC_TEXT_DESCRIPTION;
     $this->sort_order = MODULE_SHIPPING_FRC_SORT_ORDER;
     $this->icon = DIR_WS_ICONS . 'shipping_frc.gif';
     $this->tax_class = MODULE_SHIPPING_FRC_TAX_CLASS;
     $this->oversized_module = ((MODULE_SHIPPING_FRC_OVERSIZE == 'True') ? true : false);
     $this->enabled = ((MODULE_SHIPPING_FRC_STATUS == 'True') ? true : false);
    
     if (is_object($cart)) {$OversizedProducts = $cart->show_oversized();}   <========== ligne 53
     if ($this->oversized_module == true) {
      if ( $OversizedProducts == 0 ) {$this->enabled = false;}
     } else {
      if ( $OversizedProducts > 0 ) {$this->enabled = false;}
     }


     if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FRC_ZONE > 0) ) {
       $check_flag = false;
       $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_FRC_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
       while ($check = tep_db_fetch_array($check_query)) {
         if ($check['zone_id'] < 1) {
           $check_flag = true;
           break;
         } elseif ($check['zone_id'] == $order->delivery['zone_id']) {
           $check_flag = true;
           break;
         }
       }

       if ($check_flag == false) {
         $this->enabled = false;
       }
     }

     $this->types = array('ECO' => MODULE_SHIPPING_FRC_ECONOMY,
                          'INS' => MODULE_SHIPPING_FRC_INSURANCE,
                          'URG' => MODULE_SHIPPING_FRC_URGENT,
                          'URGINS' => MODULE_SHIPPING_FRC_URGENT_INSURANCE,);

     // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED
     $this->num_frc = 7;
   }

// class methods
   function quote($method = '') {
     global $HTTP_POST_VARS, $order, $shipping_weight, $cart, $shipping_num_boxes;

     $dest_country = $order->delivery['country']['iso_code_2'];
     $dest_cp = substr( $order->delivery['postcode'], 0, 2 );
     $dest_zone = 0;
     $error = false;

    if ( ($dest_country == 'FR') || ($dest_country == 'FX') ) {// Par défaut le destinataire est en France métropole
      // Par défaut le destinataire est en France métropole
      $dest_country = 'FR';
      // Le code postal du destinataire est dans les DOM
      if ($dest_cp == '97')  $dest_country = 'DOM';
      // Le code postal du destinataire est dans les TOM
      if ($dest_cp == '98')  $dest_country = 'TOM';
   } elseif ( ($dest_country == 'YT') || ($dest_country == 'PM') || ($dest_country == 'GF') || ($dest_country == 'GP') || ($dest_country == 'MQ') || ($dest_country == 'RE')) {
   $dest_country = 'DOM';
} elseif ( ($dest_country == 'NC') || ($dest_country == 'PF') || ($dest_country == 'WF') || ($dest_country == 'TF')) {
  $dest_country = 'TOM';
    }
  
     for ($j=1; $j<=$this->num_frc; $j++) {
       $countries_table = constant('MODULE_SHIPPING_FRC_COUNTRIES_' . $j);
       $country_zones = split("[,]", $countries_table);
       if (in_array($dest_country, $country_zones)) {
         $dest_zone = $j;
         break;
       } else {
        $dest_zone = 0; // Other destinations
       }
     }
     $OversizedProducts = $cart->show_oversized();
     if (MODULE_SHIPPING_FRC_OVERSIZE == 'True') {
      if ( $OversizedProducts == 0 ) {
       if ( $shipping_weight <= 2) {
         $dest_zone = 0;
         }
      }
     }
     else {
      if ( $OversizedProducts > 0 ) {
       $dest_zone = 0;
      }
     }
     if ($dest_zone == 0) {
       $error = true;
     } else {
       $shipping = -1;
       $frc_cost_eco = @constant('MODULE_SHIPPING_FRC_COST_ECO_' . $j);
       $frc_cost_ins = @constant('MODULE_SHIPPING_FRC_COST_INS_' . $j);
       $frc_cost_urg = @constant('MODULE_SHIPPING_FRC_COST_URG_' . $j);
       $frc_cost_urg_ins = @constant('MODULE_SHIPPING_FRC_COST_URG_INS_' . $j);

       $methods = array();

       if ($frc_cost_eco != '') {
         $frc_table_eco = split("[:,]" , $frc_cost_eco);

         for ($i=0; $i<sizeof($frc_table_eco); $i+=2) {
           if ($shipping_weight <= $frc_table_eco[$i]) {
             $shipping_eco = $frc_table_eco[$i+1];
             break;
           }
         }

         if ($shipping_eco == -1) {
           $shipping_cost = 0;
           $shipping_method = MODULE_SHIPPING_FRC_UNDEFINED_RATE;
         } else {
           $shipping_cost_1 = ($shipping_eco + MODULE_SHIPPING_FRC_HANDLING);
         }

         if ($shipping_eco != 0) {
           $ship_cost = 0;
      $total_items = 0;
           $total_items = $cart->count_contents();
           $ship_cost = ($shipping_cost_1 * $shipping_num_boxes); //- $total_items;
           if  ($ship_cost < 0) { $ship_cost = 0; };
           $methods[] = array('id' => 'ECO',
                              'title' => MODULE_SHIPPING_FRC_ECONOMY,
                              'cost' => $ship_cost);           }
       }

       if ($frc_cost_ins != '') {
         $frc_table_ins = split("[:,]" , $frc_cost_ins);

         for ($i=0; $i<sizeof($frc_table_ins); $i+=2) {
           if ($shipping_weight <= $frc_table_ins[$i]) {
             $shipping_ins = $frc_table_ins[$i+1];
             break;
           }
         }

         if ($shipping_ins == -1) {
           $shipping_cost = 0;
           $shipping_method = MODULE_SHIPPING_FRC_UNDEFINED_RATE;
         } else {
           $shipping_cost_2 = ($shipping_ins + MODULE_SHIPPING_FRC_HANDLING);
         }

        if ($shipping_ins != 0) {
           $ship_cost = 0;
      $total_items = 0;
           $total_items = $cart->count_contents();
           $ship_cost = ($shipping_cost_2 * $shipping_num_boxes); //- $total_items;
           if  ($ship_cost < 0) { $ship_cost = 0; };
           $methods[] = array('id' => 'INS',
                              'title' => MODULE_SHIPPING_FRC_INSURANCE,
                              'cost' => $ship_cost); //$shipping_cost_2 * $shipping_num_boxes);
         }
       }  

       if ($frc_cost_urg != '') {
         $frc_table_urg = split("[:,]" , $frc_cost_urg);

         for ($i=0; $i<sizeof($frc_table_urg); $i+=2) {
           if ($shipping_weight <= $frc_table_urg[$i]) {
             $shipping_urg = $frc_table_urg[$i+1];
             break;
           }
         }

         if ($shipping_urg == -1) {
           $shipping_cost = 0;
           $shipping_method = MODULE_SHIPPING_FRC_UNDEFINED_RATE;
         } else {
           $shipping_cost_3 = ($shipping_urg + MODULE_SHIPPING_FRC_HANDLING);
         }

         if ($shipping_urg != 0) {
           $ship_cost = 0;
      $total_items = 0;
           $total_items = $cart->count_contents();
           $ship_cost = ($shipping_cost_3 * $shipping_num_boxes); //- $total_items;
           if  ($ship_cost < 0) { $ship_cost = 0; };
           $methods[] = array('id' => 'URG',
                              'title' => MODULE_SHIPPING_FRC_URGENT,
                              'cost' =>  $ship_cost); //$shipping_cost_3 * $shipping_num_boxes);
         }
       }
       if ($frc_cost_urg_ins != '') {
         $frc_table_urg_ins = split("[:,]" , $frc_cost_urg_ins);

         for ($i=0; $i<sizeof($frc_table_urg_ins); $i+=2) {
           if ($shipping_weight <= $frc_table_urg_ins[$i]) {
             $shipping_urg_ins = $frc_table_urg_ins[$i+1];
             break;
           }
         }

         if ($shipping_urg_ins == -1) {
           $shipping_cost = 0;
           $shipping_method = MODULE_SHIPPING_FRC_UNDEFINED_RATE;
         } else {
           $shipping_cost_3 = ($shipping_urg_ins + MODULE_SHIPPING_FRC_HANDLING);
         }

         if ($shipping_urg_ins != 0) {
           $ship_cost = 0;
          $total_items = 0;
           $total_items = $cart->count_contents();
           $ship_cost = ($shipping_cost_3 * $shipping_num_boxes); //- $total_items;
           if  ($ship_cost < 0) { $ship_cost = 0; };
           $methods[] = array('id' => 'URGINS',
                              'title' => MODULE_SHIPPING_FRC_URGENT_INS,
                              'cost' =>  $ship_cost); //$shipping_cost_3 * $shipping_num_boxes);
         }
       }

     }

     $this->quotes = array('id' => $this->code,
                           'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . ' ' . MODULE_SHIPPING_FRC_TEXT_UNITS .')');
     $this->quotes['methods'] = $methods;

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

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

     if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_FRC_INVALID_ZONE;

     if ( (tep_not_null($method)) && (isset($this->types[$method])) ) {

       for ($i=0; $i<sizeof($methods); $i++) {
         if ($method == $methods[$i]['id']) {
           $methodsc = array();
           $methodsc[] = array('id' => $methods[$i]['id'],
                               'title' => $methods[$i]['title'],
                               'cost' => $methods[$i]['cost']);
           break;
         }
       }
       $this->quotes['methods'] = $methodsc;
     }

     return $this->quotes;
   }

   function check() {
     if (!isset($this->_check)) {
       $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_FRC_STATUS'");
       $this->_check = tep_db_num_rows($check_query);
     }
     return $this->_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 ('French PostOffice - Letter', 'MODULE_SHIPPING_FRC_STATUS', 'True', 'Do you want to offer the dispatch over the French post office for letters?', '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 ('Handling Fee', 'MODULE_SHIPPING_FRC_HANDLING', '0', 'Handling charge for this mode of shipment', '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 ('Tax', 'MODULE_SHIPPING_FRC_TAX_CLASS', '0', 'Select the VAT set for this mode of shipment.', '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, use_function, set_function, date_added)
                   values ('Zone', 'MODULE_SHIPPING_FRC_ZONE', '0', 'If you select a zone, this mode of shipment is offered only in this zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_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 ('Sort Order', 'MODULE_SHIPPING_FRC_SORT_ORDER', '0', 'Lowest one is first indicated.', '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 ('Enable Oversized', 'MODULE_SHIPPING_FRC_OVERSIZE', 'True', 'Does this method handle oversized items', '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 ('Tarifs for France', 'MODULE_SHIPPING_FRC_COUNTRIES_1', 'FR', 'France', '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 ('Tarifs for Zone FR for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_1', '0.5:4.50,1:5.5,2:6.40,3:7.00,5:8.30,7:9.00,10:10.90,15:12.70,30:17.50', 'Tarif Table for the France Zone in <b>\'ECO\'</b> up to 3 kg.', '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 ('Tarifs for Zone FR for Colieco + Ins', 'MODULE_SHIPPING_FRC_COST_INS_1', '0.5:8.50,1:9.5,2:10.40,3:11.00,5:12.30,7:13.00,10:14.90,15:16.70,30:21.50', 'Tarif Table for the France Zone in <b>\'INS\'</b> up to 1 kg.', '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 ('Tarifs for Zone FR for Express Collissimo', 'MODULE_SHIPPING_FRC_COST_URG_1', '0.5:5.50,1:6.5,2:7.00,3:8.00,5:9.00,7:10.00,10:11.70,15:13.70,30:19.00', 'Tarif Table for the France Zone in <b>\'URG\'</b> up to 30 kg.', '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 ('Tarifs for Zone FR for Express Collissimo + Ins.', 'MODULE_SHIPPING_FRC_COST_URG_INS_1', '0.5:8.50,1:9.50,2:10.00,3:11.00,5:12.20,7:13.00,10:14.80,15:16.90,30:21.50', 'Tarif Table for the France Zone in <b>\'URGINS\'</b> up to 30 kg.', '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 ('Tarifs for DOM', 'MODULE_SHIPPING_FRC_COUNTRIES_2', 'DOM', 'DOM', '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 ('Tarifs for DOM for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_2', '0.5:7.60, 1:11.40, 2:15.70, 3:20.00', 'Tarif Table for the DOM Zone in <b>\'ECO\'</b> up to 3 kg.', '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 ('Tarifs for DOM for Colieco Ins.', 'MODULE_SHIPPING_FRC_COST_INS_2', '0.5:10.70,1:12.60,2:13.10,3:14.10', 'Tarif Table for the DOM Zone in <b>\'INS\'</b> up to 3 kg.', '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 ('Tarifs for TOM', 'MODULE_SHIPPING_FRC_COUNTRIES_3', 'TOM', 'TOM', '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 ('Tarifs for TOM for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_3', '0.5:8.70, 1:13.90, 2:25.30, 3:36.70', 'Tarif Table for the TOM Zone in <b>\'ECO\'</b> up to 3 kg.', '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 ('Tarifs for TOM for Colieco + Ins.', 'MODULE_SHIPPING_FRC_COST_INS_3', '0.5:11.80,1:18.00,2:28.40,3:39.80', 'Tarif Table for the TOM Zone in <b>\'INS\'</b> up to 3 kg.', '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 ('Tarifs for Zone A - Europe de l\'ouest et CEE, Gibraltar,SanMarin, Vatican', 'MODULE_SHIPPING_FRC_COUNTRIES_4', 'NO,MC,GB,DE,IE,ES,IT,BE,PT,NL,AT,AD,CY,DK,EE,FI,GI,GR,HU,LV,LT,LU,MT,VA,PL,C
Z,SK,SI,SE,SM', 'Liste des pays faisant partie 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 ('Tarifs for Zone A for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_4', '1:14.80,2:16.30,3:19.30', 'Tarif Table for the Zone A in <b>\'ECO\'</b> up to 3 kg.', '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 ('Tarifs for Zone A for Colieco + Ins', 'MODULE_SHIPPING_FRC_COST_INS_4', '1:18.80,2:20.30,3:23.30', 'Tarif Table for the Zone A in <b>\'INS\'</b> up to 3 kg.', '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 ('Tarifs for Zone B - Pays Zone B - Europe de l\'Est, Maroc, Tunisie, Algérie', 'MODULE_SHIPPING_FRC_COUNTRIES_5', 'AL,AM,AZ,BY,BG,HR,YU,RU,GE,MD,MK,RO,TR,UA,DZ,MA,TN', 'Comma separated list of two character ISO country codes that are part of 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 ('Tarifs for Zone C for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_5', '1:17.80,2:19.60,3:23.80', 'Tarif Table for Zone B, in <b>\'ECO\'</b> up to 3Kg.', '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 ('Tarifs for Zone B for Colieco + Ins', 'MODULE_SHIPPING_FRC_COST_INS_5', '1:21.80,2:23.60,3:27.80', 'Tarif Table for Zone B, in <b>\'INS\'</b> up to 3Kg.', '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 ('Tarifs for Zone C - Afrique,USA,Proche-Orient,Moyen-Orient', 'MODULE_SHIPPING_FRC_COUNTRIES_6', 'ZA,AO,BJ,BW,BF,BI,CM,CV,CF,KM,CG,CI,DJ,ET,GA,GM,GH,GN,GW,MU,KE,LS,LR,LY,MG,M
W,MR,YT,MZ,NA,NE,NG,RW,EH,ST,SH,SC,SN,SL,SO,SD,SZ,TZ,TD,TG,ZR,ZM,ZW,US,CA,SA,BH,
BN,EG,AE,ER,IQ,IR,IL,JO,KW,LB,OM,QA,SY,YE', 'Comma separated list of two character ISO country codes that are part of 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 ('Tarifs for Zone C for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_6', '1:20.50,2:27.00,3:36.00', 'Tarif Table for Zone C, in <b>\'ECO\'</b> up to 3Kg.', '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 ('Tarifs for Zone C for Colieco + Ins', 'MODULE_SHIPPING_FRC_COST_INS_6', '1:24.50,2:31.00,3:40.00', 'Tarif Table for Zone C, in <b>\'INS\'</b> up to 3Kg.', '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 ('Tarifs for Zone D - Autres destinations', 'MODULE_SHIPPING_FRC_COUNTRIES_7', 'OT', 'Comma separated list of two character ISO country codes that are part of 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 ('Tarifs for Zone D for Colieco', 'MODULE_SHIPPING_FRC_COST_ECO_7', '1:23.70,2:35.70,3:47.70', 'Tarif Table for Zone C, in <b>\'ECO\'</b> up to 3Kg.', '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 ('Tarifs for Zone D for Colieco + Ins', 'MODULE_SHIPPING_FRC_COST_INS_7', '1:27.70,2:39.70,3:51.70', 'Tarif Table for Zone C, in <b>\'INS\'</b> up to 3Kg.', '6', '0', now())");
   }

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

   function keys() {
     $keys = array('MODULE_SHIPPING_FRC_STATUS', 'MODULE_SHIPPING_FRC_HANDLING', 'MODULE_SHIPPING_FRC_TAX_CLASS', 'MODULE_SHIPPING_FRC_ZONE', 'MODULE_SHIPPING_FRC_SORT_ORDER', 'MODULE_SHIPPING_FRC_OVERSIZE');

     for ($i=1; $i <= $this->num_frc; $i++) {
       $keys[count($keys)] = 'MODULE_SHIPPING_FRC_COUNTRIES_' . $i;
       $keys[count($keys)] = 'MODULE_SHIPPING_FRC_COST_ECO_' . $i;
       $keys[count($keys)] = 'MODULE_SHIPPING_FRC_COST_INS_' . $i;
       $keys[count($keys)] = 'MODULE_SHIPPING_FRC_COST_URG_' . $i;
       $keys[count($keys)] = 'MODULE_SHIPPING_FRC_COST_URG_INS_' . $i;
     }

     return $keys;
   }
}
?>


Ce message a été modifié par katzele - 3 Sep 2007, 18:22.


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
katzele
posté 4 Sep 2007, 15:26
Message #86


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



ça y est c'est résolu ! En fait c'est la contrib order editor qu'il faut modifier. dans le fichier admin/order_editor/cart.php il faut faire exactement les même modif que dans include/classes/shopping_cart.php !

Merci Phocea de ton aide.


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 
Phocea
posté 4 Sep 2007, 22:41
Message #87


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1448
Inscrit : 12-March 05
Lieu : Chuiche
Membre no 5120



Ah bein voila, rien à faire smile.gif
Go to the top of the page
 
katzele
posté 6 Nov 2007, 14:33
Message #88


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 612
Inscrit : 20-November 04
Lieu : Le pays des cigognes
Membre no 3860



Bonjour, encore moi !

J'ai un petit souci, dans la fiche produit quand je met 1 dans la case oversize il met à jour la BDD mais il ne garde pas en mémoire dans la fiche produit. D'autre part et ça doit être le même problème, j'ai modifié le fichier quick update de façon à pouvoir modifier oversize sur plusieurs produits en même temps et pareil, il met à jour la base mais ne garde pas en mémoire, c'est gênant car je ne sais plus quel produits sont sur 1 ou sur 0 et dans le doute je refais tout.

Le fichier quick_update en format text est ici

j'ai indiqué les modif avec //BOF OVERSIZE

merci de m'aider si vous pouvez.


--------------------
Béa

Ms2

• YASU2 • Newsletters subscribers • Prev_Next_Product • Product_on_Order • Weight zones • Sid Killer • Site Map • Stats_customers_orders • Add Master Password Plus • Ask_a_question • Boxe_défilante • checkout button in cart box • Only "this_many" available • Compte_Point_Parrain adaptée par Licorne • B2B • Heard_about_us • MultiOrdersUpdate • Sales_Report_2.2.0 • month_sales •
Go to the top of the page
 

4 Pages V  « < 2 3 4
Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 28th March 2024 - 18:50
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)