2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 8
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get description product.
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function GetProductDescription() Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
|
|
|
|
|
2024-06-06 15:33:52 +03:00
|
|
|
Returns: Map Of KeyAndValue - Empty product description:
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-07-10 14:24:11 +03:00
|
|
|
Result = OPI_VK.GetProductDescription();
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-07-10 11:59:55 +03:00
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint vk GetProductDescription
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 14:11:17 +03:00
|
|
|
Product = New Map();
|
2024-06-05 10:19:46 +00:00
|
|
|
Product.Insert("Name", "New product"); // Product name
|
|
|
|
Product.Insert("Description", "Product description"); // Product description
|
|
|
|
Product.Insert("Category", "20173"); // See GetProductCategoryList()
|
|
|
|
Product.Insert("Price", 1); // Price.
|
|
|
|
Product.Insert("OldPrice", Undefined); // For reflection change price
|
|
|
|
Product.Insert("MainPhoto", Undefined); // BD or path to main. photo
|
|
|
|
Product.Insert("URL", Undefined); // Link to page store
|
|
|
|
Product.Insert("AdditionalPhotos", New Array); // Array paths or BD for add. photo
|
|
|
|
Product.Insert("PropertyValues", New Array); // Values properties (variants). Maximum 2
|
|
|
|
Product.Insert("MainInGroup", False); // Make main in of its group
|
|
|
|
Product.Insert("Width", Undefined); // In millimeters
|
|
|
|
Product.Insert("Height", Undefined); // In millimeters
|
|
|
|
Product.Insert("Depth", Undefined); // In millimeters
|
|
|
|
Product.Insert("Weight", Undefined); // In grams
|
|
|
|
Product.Insert("SKU", Undefined); // SKU
|
|
|
|
Product.Insert("AvailableBalance", 1);
|
|
|
|
```
|