You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| getPrice |`(item: Item \| Variation) => number`| Maps the price field from the API Response in `item.data`. Defaults to `item.data.price`|
37
+
| getSalePrice |`(item: Item \| Variation) => number \| undefined`| Maps the sale price from the API Response in `item.data`. Defaults to `item.data.sale_price`|
38
+
| getRolloverImage |`(item: Item \| Variation) => string \| undefined`| Maps the rollover/hover image URL field from the API Response in `item.data`. Defaults to `item.data.rolloverImage`|
39
+
| getSwatchPreview |`(variation: Variation) => string`| Maps the swatch preview image URL from the API Response in `variations.data`. Defaults to `variation.data.swatchPreview`|
40
+
| getSwatches |`(item: Item, retrievePrice, retrieveSwatchPreview, retrieveSalePrice, retrieveRolloverImage) => SwatchItem[] \| undefined`| Maps the swatches object from the API Response from `item.variations`. Builds a SwatchItem array by iterating through variations |
41
+
| getIsHiddenGroupField |`(group: PlpItemGroup) => boolean \| undefined`| Maps a custom field in item_group.data to determine if a group should be hidden. Defaults to `group.data.cio_plp_hidden`|
42
+
| getItemUrl |`(item: Item) => string \| undefined`| Maps the product URL from the API Response. Defaults to `item.url`|
38
43
39
44
## Configuration Options
40
45
@@ -50,8 +55,8 @@ Configuration options for the Groups component behavior.
50
55
51
56
Configuration options for pagination functionality.
0 commit comments