Nach dem Update der Server von auf PHP5 und MySql5 gab es weder in der Bestätigungsmail an den Kunden bzw. Shopbetreiber noch im Shopadmin eine Auflistung der bestellten Produkte. Nur die Gesamtsumme und die Steuern waren zu sehen. Leider steht auch nirgends in der Datenbank welche Artikel bestellt wurden.
Die Ursache ist ein Bug in der Datei checkout_process.php. Die Spalte “products_shipping_time” existiert nicht in der Datentabelle. Offenbar ist dieser Fehler in älteren MySql-Versionen übergangen worden, jetzt schlägt er voll zu.
Um den Fehler zu beheben muss die Datei checkout_process.php editiert werden:
Finden:
$sql_data_array = array (‘orders_id’ => $insert_id, ‘products_id’ => xtc_get_prid($order->products[$i][‘id’]), ‘products_model’ => $order->products[$i][‘model’], ‘products_name’ => $order->products[$i][‘name’],’products_shipping_time’=>$order->products[$i][‘shipping_time’], ‘products_price’ => $order->products[$i][‘price’], ‘final_price’ => $order->products[$i][‘final_price’], ‘products_tax’ => $order->products[$i][‘tax’], ‘products_discount_made’ => $order->products[$i][‘discount_allowed’], ‘products_quantity’ => $order->products[$i][‘qty’], ‘allow_tax’ => $_SESSION[‘customers_status’][‘customers_status_show_price_tax’]);
Ersetzen durch:
$sql_data_array = array (‘orders_id’ => $insert_id, ‘products_id’ => xtc_get_prid($order->products[$i][‘id’]), ‘products_model’ => $order->products[$i][‘model’], ‘products_name’ => $order->products[$i][‘name’], ‘products_price’ => $order->products[$i][‘price’], ‘final_price’ => $order->products[$i][‘final_price’], ‘products_tax’ => $order->products[$i][‘tax’], ‘products_discount_made’ => $order->products[$i][‘discount_allowed’], ‘products_quantity’ => $order->products[$i][‘qty’], ‘allow_tax’ => $_SESSION[‘customers_status’][‘customers_status_show_price_tax’]);
Tags: Anleitung, xt:commerce

RSS-Feed
Statistiken