2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 8
|
|
|
|
---
|
|
|
|
|
2024-10-05 16:58:47 +03:00
|
|
|
# Get product description
|
|
|
|
Gets the description template for creating a product
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-05 16:58:47 +03:00
|
|
|
`Function GetProductDescription(Val Clear = False) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
2024-10-05 16:58:47 +03:00
|
|
|
| Clear | --empty | Boolean | True > structure with empty valuse, False > field descriptions at values |
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-10-05 16:58:47 +03:00
|
|
|
Returns: Map Of KeyAndValue - Fields map
|
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-10-05 16:58:47 +03:00
|
|
|
Parameters = GetVKParameters();
|
|
|
|
|
|
|
|
Result = OPI_VK.GetProductDescription();
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint vk GetProductDescription
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-10-06 16:55:08 +03:00
|
|
|
{
|
|
|
|
"Name": "New product",
|
|
|
|
"Description": "Product description",
|
|
|
|
"Category": "20173",
|
|
|
|
"Price": 1,
|
|
|
|
"OldPrice": null,
|
|
|
|
"MainPhoto": null,
|
|
|
|
"URL": null,
|
|
|
|
"AdditionalPhotos": [],
|
|
|
|
"PropertyValues": [],
|
|
|
|
"MainInGroup": false,
|
|
|
|
"Width": null,
|
|
|
|
"Height": null,
|
|
|
|
"Depth": null,
|
|
|
|
"Weight": null,
|
|
|
|
"SKU": null,
|
|
|
|
"AvailableBalance": 1
|
|
|
|
}
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|