Re bonjour,
Après quelques essais, voici un exemple de contenu à placer dans un fichier .txt
dans le dossier /uploads
du plugin :
array(
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '0', 'weightmax' => '500', 'fare' => 8,85, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '500', 'weightmax' => '1000', 'fare' => 13,43, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '1000', 'weightmax' => '2000', 'fare' => 18,29, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '2000', 'weightmax' => '3000', 'fare' => 23,17, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '3000', 'weightmax' => '4000', 'fare' => 28,05, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '4000', 'weightmax' => '5000', 'fare' => 32,92, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '5000', 'weightmax' => '6000', 'fare' => 37,81, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '6000', 'weightmax' => '7000', 'fare' => 42,68, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '7000', 'weightmax' => '8000', 'fare' => 47,73, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '8000', 'weightmax' => '9000', 'fare' => 53,43, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '9000', 'weightmax' => '10000', 'fare' => 59,23, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '10000', 'weightmax' => '15000', 'fare' => 81,03, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '15000', 'weightmax' => '20000', 'fare' => 109,03, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '20000', 'weightmax' => '25000', 'fare' => 137,75, 'addfees' => '','method_name' => 'DOM Zone1'),
array('class' => 'all', 'methods' => 'home1', 'pricemin' => '0', 'pricemax' => '2000', 'weightmin' => '25000', 'weightmax' => '30000', 'fare' => 166,46, 'addfees' => '','method_name' => 'DOM Zone1')
);