Überverkauf => Lieferstatus ändern
Verfasst: Di 16. Jul 2013, 07:43
Jeder kennt das Problem - man erlaubt Überverkauf - im Warenkorb wird es angezeigt das der Artikel nicht voll langernd ist aber im Mail steht dann Lieferstatus lagernd.
Die Lösung ist relativ simple:
checkout_process.php
ca. Zeile 253 einfügen
Zeile ca. 260 ändern
Es wird nun wenn ein Überverkauf erfolgt die Lieferzeit auf 10 Werktage gesetzt. Das ganze kann man natürlich noch mit einer Language Variablen erweitern oder sonstiges Spielereien veranstalten.
Die Lösung ist relativ simple:
checkout_process.php
ca. Zeile 253 einfügen
Code: Alles auswählen
//Änderung
$shipping_realtime = $order->products[$i]['shipping_time'];
if ($stock_left < 0) { $shipping_realtime = '<b>Nicht alle Artikel auf Lager! - Lieferzeit: ca. 10 Werktage!</b>'; }
//Änderung Ende
Code: Alles auswählen
$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'=>$shipping_realtime, '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']);