Skip to content

Commit 2725704

Browse files
authored
Apply suggestions from code review
1 parent 27ddf19 commit 2725704

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/pim/product_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Get an individual product by using the `ProductServiceInterface::getProduct()` m
2323
[[= include_file('code_samples/api/product_catalog/src/Command/ProductCommand.php', 68, 71) =]]
2424
```
2525

26-
Find multiple products with [`ProductServiceInterface::findProducts()`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-ProductServiceInterface.html#method_findProducts).
26+
Find multiple products with `ProductServiceInterface::findProducts()`.
2727

2828
Provide the method with optional filter, query or Sort Clauses.
2929

3030
``` php
3131
[[= include_file('code_samples/api/product_catalog/src/Command/ProductCommand.php', 72, 82) =]]
3232
```
3333

34-
See [Product Search Criteria](product_search_criteria.md) and [Product Sort Clauses](product_sort_clauses.md) references for more to use with [`ProductQuery`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Product-ProductQuery.html).
34+
See [Product Search Criteria](product_search_criteria.md) and [Product Sort Clauses](product_sort_clauses.md) references for more information about how to use the [`ProductQuery`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Product-ProductQuery.html) class.
3535

3636
### Modifying products
3737

@@ -41,7 +41,7 @@ To create, update and delete products, use the `LocalProductServiceInterface`.
4141
[[= include_file('code_samples/api/product_catalog/src/Command/ProductCommand.php', 93, 97) =]]
4242
```
4343

44-
To create a product, use [`LocalProductServiceInterface::newProductCreateStruct()`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Local-LocalProductServiceInterface.html#method_newProductCreateStruct).
44+
To create a product, use `LocalProductServiceInterface::newProductCreateStruct()` to get a [`ProductCreateStruct`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Local-Values-Product-ProductCreateStruct.html).
4545
Provide the method with the product type object and the main language code.
4646
You also need to set (at least) the code for the product and the required Field of the underlying content type, `name`:
4747

@@ -145,7 +145,7 @@ To get information about product attribute groups, use the [`AttributeGroupServi
145145
or [`LocalAttributeGroupServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Local-LocalAttributeGroupServiceInterface.html) to modify attribute groups.
146146

147147
`AttributeGroupServiceInterface::getAttributeGroup()` enables you to get a single attribute group by its identifier.
148-
`AttributeGroupServiceInterface::findAttributeGroups()` get all attribute groups, base on optional [`AttributeGroupQuery`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-AttributeGroup-AttributeGroupQuery.html):
148+
`AttributeGroupServiceInterface::findAttributeGroups()` gets attribute groups, all of them or filtered with an optional [`AttributeGroupQuery`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-AttributeGroup-AttributeGroupQuery.html) object:
149149

150150
``` php
151151
[[= include_file('code_samples/api/product_catalog/src/Command/AttributeCommand.php', 71, 72) =]]

0 commit comments

Comments
 (0)