Fehlermeldung Änderung Bestellung: MODULE SHIPPING FREE TAX CLASS
Aus Wiki | modified eCommerce Shopsoftware
Zur Navigation springenZur Suche springenNur bis zur Version 1.03 der modified eCommerce Shopsoftware (Behoben ab Revision r923 pre1.04)
Immer wenn ich eine Bestellung ändere, nimmt das System zwar diese Änderungen an, spuckt mir aber immer eine Fehlermeldung aus.
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_FREE_TAX_CLASS in /.../admin/orders_edit.php on line 532 Warning: Cannot modify header information - headers already sent by (output started at /.../admin/orders_edit.php:532) in /.../admin/includes/functions/general.php on line 130
Antwort von Anotherone am So 12. Apr 2009, 16:31
Ändere folgendes:
admin/orders_edit.php, zeile 525-536
if ($module_name != 'discount') {
if ($module_name != 'shipping') {
$module_tax_class = constant(MODULE_ORDER_TOTAL_.strtoupper($module_name)._TAX_CLASS);
} else {
$module_tmp_name = split('_', $order->info['shipping_class']);
$module_tmp_name = $module_tmp_name[0];
if ($module_tmp_name != 'selfpickup') {
$module_tax_class = constant(MODULE_SHIPPING_.strtoupper($module_tmp_name)._TAX_CLASS);
} else {
$module_tax_class = '';
}
}
in
if ($module_name != 'discount') {
if ($module_name != 'shipping') {
$module_tax_class = constant(MODULE_ORDER_TOTAL_.strtoupper($module_name)._TAX_CLASS);
} else {
$module_tmp_name = split('_', $order->info['shipping_class']);
$module_tmp_name = $module_tmp_name[0];
if ($module_tmp_name != 'selfpickup' '''&& $module_tmp_name != 'free'''') {
$module_tax_class = constant(MODULE_SHIPPING_.strtoupper($module_tmp_name)._TAX_CLASS);
} else {
$module_tax_class = '';
}
}
entscheidend ist das
&& $module_tmp_name != 'free'