With the Product Restrictions service plugin integrated into your app, Wix will retrieve the product restriction configurations you provide whenever it calls a catalog of products from your app. Follow these steps to add the service plugin and enable Wix to communicate with your app.
Go to Extensions in your app's dashboard.
Click + Create Extension in the top right.
Find Product Restrictions Provider and click + Create.
Use the JSON editor to create the extension's configuration file. Configure the parameters by referencing the table below or the Documentation section to the right of the editor.
Name | Type | Description |
---|---|---|
deploymentUri | string | Base URI of the service plugin implementation. Since no method calls this path, it can be left blank. |
componentName | string | A unique name for this component. This is an internal name that will only appear in the app dashboard. |
productRestrictionsConfig | object | Object that contains product fields to restrict. See below for more details about nested fields. |
prices.restrictionLevel | enum | Affected fields:
|
options.restrictionLevel | enum | Affected fields: options (all nested fields except linkedMedia ) |
modifiers.restrictionLevel | enum | Affected field: modifiers (all nested fields except linkedMedia ) |
inventory.restrictionLevel | enum | Affected fields:
|
preOrder.restrictionLevel | enum | Affected fields: inventory.preorderInfo |
duplicateProduct.restrictionLevel | enum | Whether to block product duplication or display a warning when duplicating a product. |
Each restriction can be set to one of the enum values: LOCKED
or WARNING
. These restrictions apply to all products in the Wix Stores dashboard.
LOCKED
: Users cannot edit any product fields.WARNING
: Users can modify product fields. However, a warning message will notify them of possible complications like synchronization errors. After acknowledging the warning, the fields can be edited normally.