You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pim/product_api.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ description: Use PHP API to manage products in PIM, their attributes, availabili
8
8
9
9
[[= product_name =]]'s Product API provides two services for handling product information, which differ in function:
10
10
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
13
13
14
14
!!! tip "Product REST API"
15
15
@@ -86,7 +86,7 @@ This method takes the product and an array of [`ProductVariantCreateStruct`](../
86
86
87
87
### Product assets
88
88
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).
90
90
91
91
Use `AssetServiceInterface` to get a single asset by providing the product object and the assets's ID as parameters:
92
92
@@ -103,7 +103,7 @@ You can retrieve the tags (corresponding to attribute values) of assets with the
103
103
104
104
## Product types
105
105
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).
107
107
108
108
Get a product type object by using `ProductTypeServiceInterface::getProductType()`:
109
109
@@ -120,7 +120,7 @@ You can also get a list of product types with `ProductTypeServiceInterface::find
120
120
## Product availability
121
121
122
122
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).
124
124
125
125
To check whether a product is available (with or without stock defined), use `ProductAvailabilityServiceInterface::hasAvailability()`.
126
126
@@ -141,8 +141,8 @@ and the third whether its stock is infinite. The fourth parameter is the stock n
141
141
142
142
## Attributes
143
143
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.
146
146
147
147
`AttributeGroupServiceInterface::getAttributeGroup()` enables you to get a single attribute group by its identifier.
148
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):
0 commit comments