Conversation
# Conflicts: # docs/api/rest_api/rest_api_reference/rest_api_reference.html # tools/api_refs/api_refs.sh
# Conflicts: # docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Cart-CartShoppingListTransferServiceInterface.html # docs/api/rest_api/rest_api_reference/rest_api_reference.html
| month_change: true | ||
| --- | ||
|
|
||
| # Shopping list APIs |
There was a problem hiding this comment.
There is also \Ibexa\Contracts\Cart\CartShoppingListTransferServiceInterface that could be mentioned here?
There was a problem hiding this comment.
There was a problem hiding this comment.
I added a simple example.
| import { ShoppingListsList } from '@ibexa-shopping-list/src/bundle/Resources/public/js/component/shopping.lists.list'; | ||
|
|
||
| (function (global: Window, doc: Document) { | ||
| const shoppingList = new ShoppingList(); |
There was a problem hiding this comment.
Probably we can mention that there should be exactly one instance of ShoppingList, which is accessible on window.ibexaShoppingList after init.
And that it is a wrapper for service functions shopping-list/src/bundle/Resources/public/js/service/shopping.list.ts.
After new shopping list data was loaded with it, it dispatches the ibexa-shopping-list:shopping-lists-data-changed event:
document.body.dispatchEvent(
new CustomEvent<ShoppingListChangedDetail>('ibexa-shopping-list:shopping-lists-data-changed', {
detail: { shoppingList: this },
}),
);
code_samples/ change report
|
|




Document the Commerce's Shopping List LTS Update feature for developers.
Previews:
ShoppingListAdapterfor paginationRelated PRs:
Not started:
Checklist