• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

DezTech
#1 Posted : Wednesday, August 15, 2007 7:10:57 PM(UTC)
DezTech

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 58

I'm currently writing a tool to move the products from my client's current (very old) Access-based cart to BV5. The BV5 Product object has A LOT of Properties, many of which I don't specifically care about so my general idea is the following:


1) Start with an object based on a sample product that I manually added to the database already.

2) Use that base object to assign my product-specific values for my new product object.

3) Save the modified object as a new Product to the database.



My code for doing this is below, but the best result I can get so far is that one the first product from my source is being saved to BV5 and even that is completely 100% empty, it's just a new product with my assigned Bvin, but NOTHING else. Is there anyone from BV or elsewhere that has posted a code sample of how to use the WebServices to migrate product data?



Thanks,

-Aaron




'Init the Base Product to use for creating my product objects...
"SKU"'Assign Specific Data Values to Base Object...</P>String"L.jpg"</P>"S.jpg"</P>" - ""/""/"".aspx"</P>"/Picture_Frames"IfThen</P>Else</P>EndIf</P>'Assign Specific Data Values to GlobalProduct Object Based on Base Object...</P>","'Save Data to BV5 DB...</P>'Dim boolCommitted As Boolean = objWebServices.Catalog_InternalProduct_Insert(objAuthToken, bv5Product)</P>DimAsBoolean[2] = objWebServices.Catalog_Product_Commit(objAuthToken, bv5Product)</P>[/2]

</FONT>
DezTech
#2 Posted : Wednesday, August 15, 2007 9:39:51 PM(UTC)
DezTech

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 58

I changed from using the Product object to using the InternalProduct object and was able to get some basic transfer working. The next step will be to beef this up to support a variety of product options (mostly for sizes). A post with a code sample would still be helpful as would a link to any available documentation as I'm still unclear regarding the relationship between InternalProduct and Product/GlobalProduct.


Thanks,

-Aaron




'Init the Base Product to use for creating my product objects...
DimAs"a5ebdc8e-b149-407d-ba32-69e6ec4efdf6"'Assign BV Default Values...</P>DimAsDimAsDimAs'Assign Specific Data Values to Base Object...</P>String"L.jpg"</P>"S.jpg"</P>" - ""/""/"".aspx"</P>"/Picture_Frames""|"IfThen</P>Else</P>EndIf</P>

[2]
'Save Data to BV5 DB...

Dim[2] aryCategories() As String = Split(strTargetCatID, ","[color=#000000>)[/2]


bv5Product.Categories]

[/color]Dim[/2]AsBooleanIfThen
'Add Categories...</P>DimAsInteger</P>ForToNext</P></FONT>
mzirino
#3 Posted : Monday, May 5, 2008 2:01:08 PM(UTC)
mzirino

Rank: Member

Joined: 4/8/2008(UTC)
Posts: 21

Hi. I am looking for the meanings and relationshipis of these classes:

<UL>
* Product

* InternalProduct

* GlobalProduct
</UL>
Did you find any clarification on this?

Thanks,
Marco
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012