Quantcast
Channel: Neueste Diskussionen - Shopware Community Forum
Viewing all articles
Browse latest Browse all 14594

Einfache Packliste / Pickliste für Mobilgeräte

$
0
0

Hallo Community,

bei der Versandvorbereitung hatte ich das Problem, dass ich nicht unnötig schmutziges Papier produzieren wollte (Packlisten pro Bestellung drucken) , also eine einfache Handygerechte Liste der offenen Bestellungen, jeweils mit den Artikelpositionen - und nach erfolgreicher Verpackung ein Feld zur Zwischenspeicherung des Paket Gewicht's

die Bestellnummer wird auf dem Paket vermerkt und später mit dem (DHL) Paket Etikett versehen

folgendes Script einfach ins Rootverzeichnis, ev. Zugriffbeschränkung muss Serverseitig erfolgen

<?php
$config=include("config.php");
$db = mysqli_connect($config[db][host], $config[db][username], $config[db][password], $config[db][dbname]);
if (!$db) {
    die('MySQL Error: ' . mysql_error());
}

print "<html><body style=width:800px><font size=5 face=arial>";

$result = mysqli_query($db, "SELECT * FROM `s_order` WHERE `status` = 0 LIMIT 50");
while($order = mysqli_fetch_array($result, MYSQL_ASSOC) )
{

    $result_user = mysqli_query($db, "SELECT * FROM `s_order_shippingaddress` WHERE `orderID` = ".$order[id]);
    $user = mysqli_fetch_array($result_user, MYSQL_ASSOC);

    $result_country = mysqli_query($db, "SELECT * FROM `s_core_countries` WHERE `id` = ".$user[countryID]);
    $country = mysqli_fetch_array($result_country, MYSQL_ASSOC);

    print "<b>";
    print $order[ordernumber]." - ";
    print $user[firstname]." ";
    print $user[lastname]." - ";
    print $user[city].", ";
    print $country[countryiso]."";

    print "</b> ";
    print "<input type=number style='font-size:40px; width:100px; float:right'>";
    if ($order[cleared]=="17") print " <font color=red style=float:right;>O</font>"; //Zahlung Offen
    print "<br>";

    $result_orders = mysqli_query($db, "SELECT * FROM `s_order_details` WHERE `orderID` = ".$order[id]);
    while($orders = mysqli_fetch_array($result_orders, MYSQL_ASSOC) )
    {
    print "  • ".$orders[quantity]." x ";
    print $orders[articleordernumber]." ";
    print $orders[name]." ";
    print "</br>";

//    echo "<pre>"; print_r($order); echo "</pre>";
    }

    print "<hr><br>";

}

print "</font></body></html>";
mysqli_close($db);
?>

Hoffe es ist für jemand nützlich ...

LG. aus Österrecih

Erich


Viewing all articles
Browse latest Browse all 14594


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>