@plentymarkets/shop-api / wishlistGetters
Variable: wishlistGetters ​
const
wishlistGetters:object
Type declaration ​
getFormattedPrice() ​
getFormattedPrice: (
price
) =>string
Parameters ​
• price: number
Returns ​
string
getId() ​
getId: (
product
) =>string
Parameters ​
• product: Product
Returns ​
string
getItemAttributes() ​
getItemAttributes: (
item
,filters
?) =>Record
<string
,AgnosticAttribute
|string
>
Parameters ​
• item: Product
• filters?: string
[]
Returns ​
Record
<string
, AgnosticAttribute
| string
>
getItemImage() ​
getItemImage: () =>
string
Returns ​
string
getItemName() ​
getItemName: (
item
) =>string
Parameters ​
• item: Product
Returns ​
string
getItemPrice() ​
getItemPrice: (
item
) =>AgnosticPrice
Parameters ​
• item: Product
Returns ​
AgnosticPrice
getItemQty() ​
getItemQty: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getItemSku() ​
getItemSku: (
item
) =>string
Parameters ​
• item: Product
Returns ​
string
getItems() ​
getItems: (
wishlist
) =>WishlistItem
[]
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
getRegularItemPrice() ​
getRegularItemPrice: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getShippingPrice() ​
getShippingPrice: (
wishlist
) =>number
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
number
getSpecialItemPrice() ​
getSpecialItemPrice: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getTotalItems() ​
getTotalItems: (
wishlist
) =>number
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
number
getTotals() ​
getTotals: (
wishlist
) =>AgnosticTotals
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
AgnosticTotals