changes to csv data headers
This commit is contained in:
@@ -206,17 +206,18 @@ def product_loader(csv_reader, user, company=None):
|
||||
# assemble instance data
|
||||
product_data = {
|
||||
'company': company,
|
||||
'name': row['nombre-producto'].strip(),
|
||||
'description': row['descripcion'].strip(),
|
||||
'sku': row['sku'],
|
||||
'name': row['nombre-producto'],
|
||||
'description': row['descripcion'],
|
||||
'url': row['url'].strip(),
|
||||
'price': float(row['precio'].strip().replace(',','.')),
|
||||
'shipping_cost': float(row['gastos-envio'].strip().replace(',','.')),
|
||||
'shipping_terms': row['cond-envio'].strip(),
|
||||
'discount': row['descuento'].strip(),
|
||||
'stock': row['stock'].strip(),
|
||||
'tags': row['tags'].strip(),
|
||||
'category': row['categoria'].strip(),
|
||||
'identifiers': row['identificadores'].strip(),
|
||||
'price': float(row['precio'].replace(',','.')),
|
||||
'shipping_cost': float(row['gastos-envio'].replace(',','.')),
|
||||
'shipping_terms': row['cond-envio'],
|
||||
'discount': row['descuento'],
|
||||
'stock': row['stock'],
|
||||
'tags': row['tags'],
|
||||
'category': row['categoria'],
|
||||
'identifiers': row['identificadores'],
|
||||
'history': history,
|
||||
'creator': user,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user