new ProductListModel()
ProductList helper function providing enhanced functionality for wishlists and other product lists.
Methods
(static) replaceProductListItem() → {Object}
Attempts to replace a product in the gift registry.
Returns:
JSON object indicating the error state if any pipelets called throw a PIPELET_ERROR.
- Type
- Object
(static) search(simpleForm, listType) → {dw.util.Collection.<dw.customer.ProductList>}
Searches for a Product List
Parameters:
Name | Type | Description |
---|---|---|
simpleForm |
dw.web.FormGroup |
ProductList simple form |
listType |
Number |
dw.customer.ProductList.TYPE_* constant |
Returns:
isProductInProductList(product)
Check is product already in the wishlist.
Parameters:
Name | Type | Description |
---|---|---|
product |
dw.catalog.Product |
The product to check |
remove()
Deletes this Product List
updateItem(formListItems)
Updates an item in the Gift Registry
Parameters:
Name | Type | Description |
---|---|---|
formListItems |
dw.web.FormList |