Hallo,
selbstvserständlich verwenden die MyOOS Entwickler für die Arbeiten an der Shop-Datenbank entsprechende Werkzeuge.
Hier ein Beispiel für eine ältere MyOOS Version
http://www.oos-shop.de/service/db/base.png
Selbstverständlich kann man diese Datei auch ungeorndet mit seinem DB-Prefix von mir erhalten.
http://www.oos-shop.de/service/db/myoos.png
oder auch als HTML Seite
http://www.oos-shop.de/service/db/myoos.html
Selbstverständlich auch als Poster oder Buch.
Ist es möglich von Ihnen eine Liste der Spalten zu bekommen, die garantiert ausgefüllt werden müssen um Artikel via PHP Script zu importieren? Auch mit der Beschreibung was wo hin gehört
Wenn man die o.g. Grafiken nicht versteht? kann man sicherlich eine Beschreibung erstellen... Ich denke für jede Datenbank-Tabelle, die wir "Übersetzen" sollen, kann
man uns auch eben ein - für den geplanten Shop typisches Produkt - zur Verfügung stellen und wir erklären, wie dieses Produkt im MyOOS Projekt abgebildet wird?
Preis 45 Euro je Stunde + MwSt.
Auch bräuchte ich die Info wo ich die Adressdate
Wir exporieren die Adressen in das Excel - Format
|
PHP Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* Field Separator
* change this if you can't use the default of tabs
* Tab is the default, comma and semicolon are commonly supported by various progs
* Remember, if your descriptions contain this character, you will confuse EP!
*/
$separator = "\t"; // tab is default
//$separator = ","; // comma
//$separator = ";"; // semi-colon
//$separator = "~"; // tilde
//$separator = "-"; // dash
//$separator = "*"; // splat
$stampit_file = 'db_export_stampit-' . date('YmdHis') . '.cvs';
$fp = fopen(OOS_EXPORT_PATH . $stampit_file, 'w');
oos_set_time_limit(0);
$schema = '';
$schema .= 'Company' . $separator . 'Name' . $separator . 'Street' . $separator . 'Postcode' . $separator . 'City' . $separator . 'Country' . "\n";
$customerstable = $oostable['customers'];
$address_booktable = $oostable['address_book'];
$countriestable = $oostable['countries'];
|
|
MySQL queries
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$sql = "SELECT c.customers_gender, c.customers_firstname, c.customers_lastname,
a.entry_company, a.entry_owner, a.entry_street_address, a.entry_suburb,
a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id,
a.entry_country_id,
c.customers_default_address_id, c.customers_status,
z.countries_id, z.countries_name
FROM $customerstable c LEFT JOIN
$address_booktable a
ON c.customers_default_address_id = a.address_book_id,
$countriestable z
WHERE c.customers_login = '1'
AND a.customers_id = c.customers_id
AND z.countries_id = a.entry_country_id";
|
|
PHP Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$customers_result = $dbconn->Execute($sql);
$rows = 0;
while ($customers = $customers_result->fields) {
$rows++;
$name = $customers['customers_firstname'] . ' ' .$customers['customers_lastname'];
$name = str_replace($separator,' ',$name);
$name = strip_tags($name);
if (STORE_COUNTRY == $customers['entry_country_id']) {
$country = '';
} else {
$country = $customers['countries_name'];
}
$schema .= $customers['entry_company']. $separator . $name . $separator . $customers['entry_street_address'] . $separator . $customers['entry_postcode'] . $separator . $customers['entry_city'] . $separator . $country . "\n";
// Move that ADOdb pointer!
$customers_result->MoveNext();
}
// Close result set
$customers_result->Close();
fputs($fp, $schema);
fclose($fp);
|
sowie die Bestellungen per PHP auslesen kann.
evtl. hilft hier der Quellcode von ~/shop/admin/orders.php weiter?
Beste Grüße
Ralf