SDKsCapabilities
Wishlist
Wishlist
Wishlist controls product hearts and membership resolution.
The default is on.
source defaults to host-first.
Pass false to hide hearts.
Prerequisites
| Item | Requirement |
|---|---|
| Host page | Serves HTTPS and can load a third-party script |
| Persona | loyalty-concierge |
| Bundle global | window.AugeoChatSdkLoyaltyConcierge |
Load a pinned production loyalty bundle first.
Read Capabilities for the shared true / false / object contract.
Values
| Value | Effect |
|---|---|
| omitted | Hearts on. Source is host-first |
true | Same as omitted |
false | Hides hearts |
| object | Hearts on with isItemSaved and source |
Parameters
| Parameter | Default | Type |
|---|---|---|
isItemSaved | unset | (item: ItemRef) => boolean |
source | host-first | Wishlist source mode |
Unknown source strings fall back to host-first.
isItemSaved
Pass a host resolver that returns whether an item is saved.
const { AugeoAssistant } = window.AugeoChatSdkLoyaltyConcierge;
new AugeoAssistant({
container: '#chat-host',
auth: { getToken: () => bearerToken },
capabilities: {
wishlist: {
isItemSaved: (item) => hostWishlist.has(item.id),
},
},
});Filled hearts follow the host set for that ItemRef.
The widget still only recommends. It does not mutate the host wishlist.
source
| Mode | Effect |
|---|---|
host-first | Defined host value wins. Else server field |
server-first | Server field wins. Else host value |
host-only | Ignore server membership |
server-only | Ignore host resolver |
capabilities: { wishlist: { source: 'server-first' } }Server membership wins when both host and server values exist.
capabilities: { wishlist: { source: 'host-only' } }Only isItemSaved decides filled hearts.
Hide hearts
Pass false to hide hearts.
capabilities: { wishlist: false }Product cards no longer render wishlist hearts.
Related pages
| Topic | Page |
|---|---|
| Product scope | Overview |
| Constructor fields | Configuration |
| Placement | Surfaces |
| Capability list | Capabilities |
| History | History |
| Privacy | Privacy |
| Message actions | Message actions |
| Chat | Chat |
| Suggestions | Suggestions |
| Event options | Event options |
| Analytics | Analytics |
| Support | Support |
| Recovery | Recovery |
| Devtools | Devtools |
| DOM events | Events |
| Public types | API |