﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1473	keine Versandkosten (nach Gewicht) im Export für billiger.de	mail@…	Torsten Riemer	"
== Fehler ==

Beim CSV-Export für billiger.de werden keine Versandkosten (nach Gewicht) berechnet. Ursache ist der Inkonsistente Wert der Konfiguration:

Geprüft wird:

{{{
            switch ($_POST['configuration']['MODULE_BILLIGER_SHIPPING_METHOD']) {
                case 'price':
                    if ($pPrice < $shipping_cost_values[$i][0]) {
                        $return = $shipping_cost_values[$i][1];
                    }
                    break;
                case 'weight':
                    if ($pWeight < $shipping_cost_values[$i][0]) {
                        $return = $shipping_cost_values[$i][1];
                    }
                    break;
                default: ;
            } // switch
}}}

Betonung auf: ''case ''''weight'''':''

Und gesetzt wird:

{{{
    xtc_db_query(""insert into "" . TABLE_CONFIGURATION . "" (configuration_key, configuration_value,  configuration_group_id, sort_order, set_function, date_added) values ('MODULE_BILLIGER_SHIPPING_METHOD', 'price',  '6', '1', 'xtc_cfg_select_option(array(\'price\', \'weight (kg)\'), ', now())"");
}}}

Betonung auf: ''array(\'price\', \''''weight (kg)'''\')''

== Lösung ==

das setzten der Variablen auf Zeile 383 anpassen:

{{{
xtc_db_query(""insert into "" . TABLE_CONFIGURATION . "" (configuration_key, configuration_value,  configuration_group_id, sort_order, set_function, date_added) values ('MODULE_BILLIGER_SHIPPING_METHOD', 'price',  '6', '1', 'xtc_cfg_select_option(array(\'price\', \'weight\'), ', now())"");
}}}

Anschließend das Modul deinstallieren und neu Installieren.

Aufgefallen in der Version 2.0.3.0"	Bug/Fehler	closed	normal	modified-shop-2.0.5.0	Module	2.0.3.0	fixed				
