Skip to content

Commit 27ddf19

Browse files
committed
product_api.md: Links to PHP API Ref on classes
1 parent 69cc99f commit 27ddf19

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/pim/product_api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ description: Use PHP API to manage products in PIM, their attributes, availabili
88

99
[[= product_name =]]'s Product API provides two services for handling product information, which differ in function:
1010

11-
- `ProductServiceInterface` is used to request product data
12-
- `LocalProductServiceInterface` is used to modify products
11+
- [`ProductServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-ProductServiceInterface.html) is used to request product data
12+
- [`LocalProductServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Local-LocalProductServiceInterface.html) is used to modify products
1313

1414
!!! tip "Product REST API"
1515

@@ -86,7 +86,7 @@ This method takes the product and an array of [`ProductVariantCreateStruct`](../
8686

8787
### Product assets
8888

89-
You can get assets assigned to a product by using `AssetServiceInterface`.
89+
You can get assets assigned to a product by using [`AssetServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-AssetServiceInterface.html).
9090

9191
Use `AssetServiceInterface` to get a single asset by providing the product object and the assets's ID as parameters:
9292

@@ -103,7 +103,7 @@ You can retrieve the tags (corresponding to attribute values) of assets with the
103103

104104
## Product types
105105

106-
To work with product types, use `ProductTypeServiceInterface`.
106+
To work with product types, use [`ProductTypeServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-ProductTypeServiceInterface.html).
107107

108108
Get a product type object by using `ProductTypeServiceInterface::getProductType()`:
109109

@@ -120,7 +120,7 @@ You can also get a list of product types with `ProductTypeServiceInterface::find
120120
## Product availability
121121

122122
Product availability is an object which defines whether a product is available, and if so, in what stock.
123-
To manage it, use `ProductAvailabilityServiceInterface`.
123+
To manage it, use [`ProductAvailabilityServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-ProductAvailabilityServiceInterface.html).
124124

125125
To check whether a product is available (with or without stock defined), use `ProductAvailabilityServiceInterface::hasAvailability()`.
126126

@@ -141,8 +141,8 @@ and the third whether its stock is infinite. The fourth parameter is the stock n
141141

142142
## Attributes
143143

144-
To get information about product attribute groups, use the `AttributeGroupServiceInterface`,
145-
or `LocalAttributeGroupServiceInterface` to modify attribute groups.
144+
To get information about product attribute groups, use the [`AttributeGroupServiceInterface`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-AttributeGroupServiceInterface.html),
145+
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.
148148
`AttributeGroupServiceInterface::findAttributeGroups()` get all attribute groups, base on optional [`AttributeGroupQuery`](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-AttributeGroup-AttributeGroupQuery.html):

0 commit comments

Comments
 (0)