The following slots and APIs are available when building a plugin for the Shop page.
Note: When selecting a slot for your plugin in the Shop page, you should select the same slot for the Gallery widget and the Category page. Different Wix sites may use any of these and making these slots available for your plugin allows users to add it to their site regardless of their setup.
The following images show the slots available in the Shop page, into which users can add plugins.
The slots are represented by the following placement
object:
Provide the following values for each property:
Key | Value |
---|---|
appDefinitionId | "1380b703-ce81-ff05-f115-39571d94dfcd" |
widgetId | "1380bba0-253e-a800-a235-88821cf3f8a4" |
slotId | ID of the slot you want as displayed in the image above. |
For example:
Use the Category plugin API to integrate with the plugin's host.
The API provides data about the current category.
Property | Type | Description |
---|---|---|
categoryId | String | The ID of the category that is currently applied on the plugin's host. |
In your site plugin or in your app's server code, you may want to perform actions or implement logic that is dependent on the current category or related data.
You can do this using the Wix Stores APIs (Velo, REST, JavaScript SDK).