mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-18 23:48:56 +02:00
29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
Parameters = GetVKParameters();
|
|
|
|
Image1 = FunctionParameters["Picture"]; // URL, Path to file or binary Data
|
|
Image2 = FunctionParameters["Picture2"]; // URL, Path to file or binary Data
|
|
Selection = FunctionParameters["VK_MarketAlbumID"];
|
|
|
|
ImageArray = New Array;
|
|
ImageArray.Add(Image1);
|
|
ImageArray.Add(Image2);
|
|
|
|
ProductDescription = New Map();
|
|
ProductDescription.Insert("Name" , "TestProduct");
|
|
ProductDescription.Insert("Description" , "Product description");
|
|
ProductDescription.Insert("Category" , "20173");
|
|
ProductDescription.Insert("Price" , 1);
|
|
ProductDescription.Insert("OldPrice" , 15);
|
|
ProductDescription.Insert("MainPhoto" , Image1);
|
|
ProductDescription.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
|
|
ProductDescription.Insert("AdditionalPhotos" , ImageArray);
|
|
ProductDescription.Insert("MainInGroup" , True);
|
|
ProductDescription.Insert("Width" , 20);
|
|
ProductDescription.Insert("Height" , 30);
|
|
ProductDescription.Insert("Depth" , 40);
|
|
ProductDescription.Insert("Weight" , 100);
|
|
ProductDescription.Insert("SKU" , "12345");
|
|
ProductDescription.Insert("AvailableBalance" , "10");
|
|
|
|
Result = OPI_VK.AddProduct(ProductDescription, Selection, Parameters);
|