Neue Kommentare

Meistgelesene Artikel

Internet, Grafik, Marketing - Die Netztaucher aus Angermünde in der Uckermark

xt:commerce Bestellung enthält keine Artikel

Dienstag, 22.07.2008 um 16:27 · Gelesen: 244 · heute: 2

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: ,


Weitere Artikel zum Thema

  • xt:commerce Demoshop aktualisiert
  • SSL-Zertifikate nun auch online bestellbar
  • xt:commerce Probleme mit PayPal
  • Schritt für Schritt zum eigenen OnlineShop
  • xt:commerce Artikel per Download verkaufen

  • Ihre Meinung zählt!

    « Shellscribble für Marc      Werbung vs. Realität »