Skip to main content

addShopItems

addShopItems(shopItems: ShopItemParameters[])

Parameters

NameTypeDescription
shopItemsShopItemParametersParameters of the added shop items

Description

Function adds a list of single shop items to the price list and removes previously added items.

Example

NetDecor.v3.shop.addShopItems(
[
{
id: "6526529",
price: 309.0,
available: 1,
description: "Szafka kuchenna",
unitType: "Pieces",
currency: "pln",
status: "AVAILABLE"
},
{
id: "6526495",
price: 119.0,
available: 0,
description: "Krzesło",
unitType: "Pieces",
currency: "pln",
status: "UNAVAILABLE"
},
{
id: "2535235",
price: 799.99,
available: 1,
description: "Prysznic",
unitType: "Pieces",
currency: "pln",
status: "MIN"
}
]
)