Fixes
This commit is contained in:
1 parent
04794aea54
commit
cfd31f398c
61 files changed
+2062
-254
No files matched your search
@@ -11,60 +11,66 @@ type MappingSuggestion struct {
|
||||
}
|
||||
|
||||
var sourceAliases = map[string][]string{
|
||||
"gtin": {"gtin"},
|
||||
"ean": {"gtin"},
|
||||
"upc": {"gtin"},
|
||||
"barcode": {"gtin"},
|
||||
"title": {"title"},
|
||||
"name": {"title"},
|
||||
"productname": {"title"},
|
||||
"brand": {"brand"},
|
||||
"manufacturer": {"brand"},
|
||||
"description": {"description"},
|
||||
"desc": {"description"},
|
||||
"price": {"price"},
|
||||
"regularprice": {"price"},
|
||||
"saleprice": {"sale_price", "price"},
|
||||
"currency": {"currency"},
|
||||
"image": {"image_url", "main_image", "image"},
|
||||
"imageurl": {"image_url", "main_image", "image"},
|
||||
"imagelink": {"image_url", "main_image", "image"},
|
||||
"mainimage": {"image_url", "main_image", "image"},
|
||||
"mainimageurl": {"image_url", "main_image", "image"},
|
||||
"link": {"product_url"},
|
||||
"url": {"product_url"},
|
||||
"producturl": {"product_url"},
|
||||
"sku": {"sku"},
|
||||
"mpn": {"mpn"},
|
||||
"category": {"category"},
|
||||
"availability": {"availability"},
|
||||
"stockstatus": {"availability", "stock_status"},
|
||||
"stock": {"stock"},
|
||||
"quantity": {"stock"},
|
||||
"qty": {"stock"},
|
||||
"color": {"color"},
|
||||
"size": {"size"},
|
||||
"material": {"material"},
|
||||
"weight": {"weight"},
|
||||
"netmass": {"weight"},
|
||||
"purchaseprice": {"purchase_price", "price"},
|
||||
"buyprice": {"purchase_price"},
|
||||
"cost": {"purchase_price"},
|
||||
"costprice": {"purchase_price"},
|
||||
"officiallink": {"official_link"},
|
||||
"warranty": {"warranty"},
|
||||
"garancija": {"warranty"},
|
||||
"service": {"service"},
|
||||
"servis": {"service"},
|
||||
"productmodel": {"product_model"},
|
||||
"model": {"product_model"},
|
||||
"modelnumber": {"product_model"},
|
||||
"eprelid": {"eprel_id"},
|
||||
"eprel": {"eprel_id"},
|
||||
"specifications": {"specs", "specifications"},
|
||||
"specs": {"specs", "specifications"},
|
||||
"specification": {"specs", "specifications"},
|
||||
"techspecs": {"specs", "specifications"},
|
||||
"gtin": {"gtin"},
|
||||
"productno": {"sku"}, "productno2": {"mpn"},
|
||||
"product": {"title"}, "descriptionbasic": {"description"},
|
||||
"pricevat": {"price"}, "priceeshopvat": {"price"},
|
||||
"pricevoc": {"purchase_price"},
|
||||
"imgurl": {"image_url"}, "params": {"specifications"},
|
||||
"categoryid": {"category_id"},
|
||||
"ean": {"gtin"},
|
||||
"upc": {"gtin"},
|
||||
"barcode": {"gtin"},
|
||||
"title": {"title"},
|
||||
"name": {"title"},
|
||||
"productname": {"title"},
|
||||
"brand": {"brand"},
|
||||
"manufacturer": {"brand"},
|
||||
"description": {"description"},
|
||||
"desc": {"description"},
|
||||
"price": {"price"},
|
||||
"regularprice": {"price"},
|
||||
"saleprice": {"sale_price", "price"},
|
||||
"currency": {"currency"},
|
||||
"image": {"image_url", "main_image", "image"},
|
||||
"imageurl": {"image_url", "main_image", "image"},
|
||||
"imagelink": {"image_url", "main_image", "image"},
|
||||
"mainimage": {"image_url", "main_image", "image"},
|
||||
"mainimageurl": {"image_url", "main_image", "image"},
|
||||
"link": {"product_url"},
|
||||
"url": {"product_url"},
|
||||
"producturl": {"product_url"},
|
||||
"sku": {"sku"},
|
||||
"mpn": {"mpn"},
|
||||
"category": {"category"},
|
||||
"availability": {"availability"},
|
||||
"stockstatus": {"availability", "stock_status"},
|
||||
"stock": {"stock"},
|
||||
"quantity": {"stock"},
|
||||
"qty": {"stock"},
|
||||
"color": {"color"},
|
||||
"size": {"size"},
|
||||
"material": {"material"},
|
||||
"weight": {"weight"},
|
||||
"netmass": {"weight"},
|
||||
"purchaseprice": {"purchase_price", "price"},
|
||||
"buyprice": {"purchase_price"},
|
||||
"cost": {"purchase_price"},
|
||||
"costprice": {"purchase_price"},
|
||||
"officiallink": {"official_link"},
|
||||
"warranty": {"warranty"},
|
||||
"garancija": {"warranty"},
|
||||
"service": {"service"},
|
||||
"servis": {"service"},
|
||||
"productmodel": {"product_model"},
|
||||
"model": {"product_model"},
|
||||
"modelnumber": {"product_model"},
|
||||
"eprelid": {"eprel_id"},
|
||||
"eprel": {"eprel_id"},
|
||||
"specifications": {"specs", "specifications"},
|
||||
"specs": {"specs", "specifications"},
|
||||
"specification": {"specs", "specifications"},
|
||||
"techspecs": {"specs", "specifications"},
|
||||
}
|
||||
|
||||
func normalizeSuggestKey(raw string) string {
|
||||
|
||||
Reference in new issue
Block a user