Skip to content

Commit c2a6357

Browse files
adriendupuismnocon
andauthored
Shopping list (#2969)
--------- Co-authored-by: adriendupuis <adriendupuis@users.noreply.github.com> Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
1 parent e2a6187 commit c2a6357

6 files changed

Lines changed: 10 additions & 5 deletions

File tree

docs/commerce/shopping_list/shopping_list.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ A user can have several shopping lists, including a default one named "My Wishli
2222
"commerce/shopping_list/shopping_list_design",
2323
"commerce/shopping_list/shopping_list_api",
2424
("api/php_api/php_api_reference/namespaces/ibexa-contracts-shoppinglist.html", "PHP API Reference", "<code>Ibexa\Contracts\ShoppingList</code>"),
25+
"api/event_reference/shopping_list_events/",
26+
"search/shopping_list_search_reference/shopping_list_criteria/",
27+
"search/shopping_list_search_reference/shopping_list_sort_clauses/",
28+
"permissions/policies/#shopping-lists",
29+
"permissions/limitation_reference/#shopping-list-limitation",
2530
("api/rest_api/rest_api_reference/rest_api_reference.html#tag/Shopping-List", "REST API Reference", "<code>commerce/shopping-list</code> resources"),
2631
], columns=2) =]]

docs/commerce/shopping_list/shopping_list_design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ An object of this class contains the shopping lists and their entries, and has m
8888

8989
An object of this class can be initialized with the `shoppingList.init()` function only once.
9090
This initialization creates the `window.ibexaShoppingList` global variable pointing to the object.
91-
If you have several scripts needing an instance of `ShoppingList` class, `window.ibexaShoppingList` is the indicator if it has been initialized already and it points the object you should use.
91+
If you have several scripts needing an instance of `ShoppingList` class, `window.ibexaShoppingList` is the indicator if it has been initialized already and it points to the object you should use.
9292
Preferably initialize an object of class `ShoppingList` on the top of the script, then use `window.ibexaShoppingList` in the next lines.
9393

9494
It has the following methods:

docs/commerce/shopping_list/shopping_list_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ They can use it to save potential purchases, recurring product sets, and other i
1111

1212
## Availability
1313

14-
The shopping list feature is available for [Commerce edition](ibexa_commerce.md) as an [LTS update](editions.md#lts-updates).
14+
The shopping list feature is available for [Commerce edition](ibexa_commerce.md) as an [LTS update](editions.md#lts-updates) since v5.0.6.
1515

1616
## Use cases
1717

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<div class="notification notification--lts-update" id="tile3">
9191
<div class="notification__content">
9292
<h2>The newest LTS Update is Shopping list</h2>
93-
<div>Customers can store potential purchases, recurrent product set, and other whish lists for later use into carts.</div>
93+
<div>Customers can use it to save potential purchases, recurring product sets, and other items for future use in the cart.</div>
9494
</div>
9595
<div class="notification__cta">
9696
<a href="commerce/shopping_list/shopping_list_guide/">Learn more about this LTS Update</a>

docs/search/shopping_list_search_reference/shopping_list_criteria.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $query = new ShoppingListQuery();
2929

3030
The following example query returns current user's shopping lists, excluding the default one, and sorts them by name:
3131

32-
```php hl_lines="8-9"
32+
```php hl_lines="7-8"
3333
[[= include_file('code_samples/shopping_list/search/criteria.php', 2) =]]
3434
```
3535

docs/search/shopping_list_search_reference/shopping_list_sort_clauses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The sort clauses are in the [`Ibexa\Contracts\ShoppingList\Value\Query\SortClaus
1818
The following example returns all the shopping lists available to the current user.
1919
The returned shopping list are sorted with the default shopping list on top, followed by the rest sorted by their name.
2020

21-
```php hl_lines="11-12"
21+
```php hl_lines="10-11"
2222
[[= include_file('code_samples/shopping_list/search/sort_clauses.php', 2) =]]
2323
```
2424

0 commit comments

Comments
 (0)