使用某种导入方式(API或其他?)将KITS和KITLNKS导入Volusion



我想将KITS/KITLNKS导入VOLUSION平台。

我们一直在手动导入CSV文件,从我们自己的数据库导出,到volusion平台。以下文件:产品,套件,工具包,选项,选项类别和类别

这是可行的,但是我们需要加快这个过程才能更快地工作。

我们使用API导出订单并将其导入我们的数据库,这非常有效。

所以我尝试使用API来导入,而不是CSV导入。产品,运行良好。套件?似乎不是通过API导入的方式。在线阅读,这似乎是一个众所周知的问题。

电子邮件支持,回复。。与支持者交谈,他们说这是可能的,但这个问题超出了支持者的范围。所以帮助不大,IMO.

他们确实建议我在schema/Generic文件夹中使用.SQL和XSD文件,我照做了,我可以返回KITS记录,但不能插入或更新它们。我想我错过了做这件事的机会。不幸的是,我认为支持对我没有帮助。

不幸的是,如果我不能让它自动运行,我将不得不切换电子商务提供商。我很懒,希望有人能在这里帮忙。

任何帮助都将不胜感激,

文档很难找到,只有我在stackoverflow上能找到的例子/帮助。链接到一些文档也会有所帮助。不必是API,我不会介意是否有一种方法来FTP CSV文件并启动某种类型的导入。

谢谢你的帮助!

我也不得不这么做。(很多内容都在user357034链接的文章中(下面是步骤1-调用一个ASP文件,该文件在volusion文件夹上创建一个.sql文件,您稍后将执行该文件-请注意,此sql是我的设置自定义的-您必须根据需要对其进行修改,但它应该创建必要的表条目。这是ASP文件中的代码。我的产品有4种选择;条件";。。。。

' get the variables we need...
productCode= Request.QueryString("productCode")
sql =   " insert into Options_ApplyTo select 183, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 183 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
" insert into Options_ApplyTo select 184, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 184 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
" insert into Options_ApplyTo select 185, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 185 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
" insert into Options_ApplyTo select 186, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 186 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
" insert into KITS select 'wiz', p.IsChildOfProductCode, p.ProductCode, 1, null, null, case when RIGHT(p.ProductCode, 4) = '0001' then 0 when RIGHT(p.ProductCode, 4) = '0002' then 1 when RIGHT(p.ProductCode, 4) = '0003' then 2 else 3 end from Products_Joined p left outer join KITS k on k.KIT_IsProductCode = p.ProductCode where p.IsChildOfProductCode in ( " & productCode & " ) and k.KIT_IsProductCode is null; " & _
" insert into KitLnks select kits.KIT_ID, null, case when RIGHT(kits.KIT_IsProductCode, 4) = '0001' then 186 when RIGHT(kits.KIT_IsProductCode, 4) = '0002' then 185 when RIGHT(kits.KIT_IsProductCode, 4) = '0003' then 184 else 183 end, null, null, null, null from KITS kits left outer join KitLnks lnks on lnks.kit_id = kits.KIT_ID where lnks.kit_id is null and KIT_ProductCode in ( " & productCode & " )    "
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile(Server.MapPath("./addKITSinfo.sql"),2,true)
f.WriteLine(sql)
f.Close
set f=Nothing
set fs=Nothing

确保在同一文件夹中有一个addKITSinfo.xsd文件(v/vspfiles/schema/Generic(。还要确保您了解SQL注入之类的知识。

然后第2步-调用API来执行刚才创建的文件中的SQL。类似。。。。

http://www.yoursite.com/net/WebService.aspx?Login=username@yoursite.com&加密密码=XXXXXXXX&EDI_Name=通用\addKITSinfo

最新更新