File Instructions.md changed (mode: 100644) (index 6620a01..499e1a6) |
1 |
|
Version 15.04.2019 Sebastian Fricke V0.1 |
|
|
1 |
|
Version 15.04.2019 Sebastian Fricke V0.1 |
2 |
2 |
|
|
3 |
3 |
|
|
4 |
4 |
|
|
5 |
5 |
1. Open the Folder for the Input Files: |
1. Open the Folder for the Input Files: |
6 |
6 |
=========DE============ |
=========DE============ |
7 |
|
---Öffne den Ordner für Eingabe Datein: |
|
|
7 |
|
---Öffne den Ordner für Eingabe Dateien: |
8 |
8 |
|
|
9 |
9 |
Save the flatfile part of the desired item as .csv and paste |
Save the flatfile part of the desired item as .csv and paste |
10 |
10 |
the height, length, width and weigth to the parent |
the height, length, width and weigth to the parent |
|
... |
... |
Version 15.04.2019 Sebastian Fricke V0.1 |
16 |
16 |
and the amzon_sku to a new .csv add the postion from 0 upwards |
and the amzon_sku to a new .csv add the postion from 0 upwards |
17 |
17 |
=========DE============ |
=========DE============ |
18 |
18 |
----Öffne die Intern_Number Liste und kopiere die full_number, article_id |
----Öffne die Intern_Number Liste und kopiere die full_number, article_id |
19 |
|
und die amazon_sku zu einem neuen .csv und ergänze die Position von 0 ab. |
|
|
19 |
|
und die amazon_sku zu einem neuen .csv und ergänze in der 4. Spalte "position". |
|
20 |
|
(Ganze Zahlen ab 0). |
20 |
21 |
|
|
21 |
22 |
Open your Amazon Storage Report and save the SKU(MASTER), asin, quantity(Badel 26...) |
Open your Amazon Storage Report and save the SKU(MASTER), asin, quantity(Badel 26...) |
22 |
23 |
and fnsku colums in a new .csv |
and fnsku colums in a new .csv |
|
... |
... |
Version 15.04.2019 Sebastian Fricke V0.1 |
43 |
44 |
möglicherweise ein Fehler, höchstwarscheinlich die falschen Spaltennamen, vergleiche |
möglicherweise ein Fehler, höchstwarscheinlich die falschen Spaltennamen, vergleiche |
44 |
45 |
mit der Beispiel Datei. |
mit der Beispiel Datei. |
45 |
46 |
|
|
|
47 |
|
Fehlermeldung: local variable 'item_name' referenced before assignment |
|
48 |
|
|
|
49 |
|
|
|
50 |
|
<class 'NameError'> |
|
51 |
|
name 'exit' is not defined |
|
52 |
|
<traceback object at 0x03544F08> |
|
53 |
|
|
46 |
54 |
3. Upload the file item_upload to plentymarkets via the dynamic import for every new upload choose the option |
3. Upload the file item_upload to plentymarkets via the dynamic import for every new upload choose the option |
47 |
55 |
"create a new data set" |
"create a new data set" |
48 |
56 |
=========DE============ |
=========DE============ |
File packages/variation_upload.py changed (mode: 100644) (index ee4989f..52014b2) |
1 |
1 |
import csv |
import csv |
2 |
2 |
from os.path import isfile |
from os.path import isfile |
|
3 |
|
import sys |
3 |
4 |
from tkinter.filedialog import askdirectory |
from tkinter.filedialog import askdirectory |
4 |
5 |
import os |
import os |
5 |
6 |
try: |
try: |
|
... |
... |
def variationUpload(flatfile, intern_number, folder): |
57 |
58 |
|
|
58 |
59 |
# create a Data Dictionary and fill it with the necessary values from the flatfile |
# create a Data Dictionary and fill it with the necessary values from the flatfile |
59 |
60 |
Data = SortedDict() |
Data = SortedDict() |
|
61 |
|
item_name = '' |
60 |
62 |
|
|
61 |
63 |
with open(flatfile, mode='r') as item: |
with open(flatfile, mode='r') as item: |
62 |
64 |
reader = csv.DictReader(item, delimiter=";") |
reader = csv.DictReader(item, delimiter=";") |
63 |
65 |
for row in reader: |
for row in reader: |
64 |
|
if(row['parent_child'] == 'parent'): |
|
65 |
|
item_name = row['item_name'] |
|
66 |
66 |
if(row['parent_child'] == 'child'): |
if(row['parent_child'] == 'child'): |
67 |
67 |
try: |
try: |
68 |
68 |
if(row['package_height'] and |
if(row['package_height'] and |
|
... |
... |
def variationUpload(flatfile, intern_number, folder): |
88 |
88 |
if(row['size_name'] and number_sizes > 1): |
if(row['size_name'] and number_sizes > 1): |
89 |
89 |
attributes += ';size_name:' + row['size_name'] |
attributes += ';size_name:' + row['size_name'] |
90 |
90 |
try: |
try: |
91 |
|
values = ['', '', row['item_sku'], item_name, '', |
|
|
91 |
|
values = ['', '', row['item_sku'], row['item_name'], '', |
92 |
92 |
int(row['package_length']) * 10, |
int(row['package_length']) * 10, |
93 |
93 |
int(row['package_width']) * 10, |
int(row['package_width']) * 10, |
94 |
94 |
int(row['package_height']) * 10, |
int(row['package_height']) * 10, |
|
... |
... |
def variationUpload(flatfile, intern_number, folder): |
96 |
96 |
row['standard_price'], 'Badel', 'Y', 'Y', ''] |
row['standard_price'], 'Badel', 'Y', 'Y', ''] |
97 |
97 |
except Exception as err: |
except Exception as err: |
98 |
98 |
print(err) |
print(err) |
99 |
|
exit() |
|
|
99 |
|
sys.exit() |
100 |
100 |
Data[row['item_sku']] = SortedDict(zip(names, values)) |
Data[row['item_sku']] = SortedDict(zip(names, values)) |
101 |
101 |
|
|
102 |
102 |
# open the intern numbers csv and fill in the remaining missing fields by using the |
# open the intern numbers csv and fill in the remaining missing fields by using the |