Wix Stores: Product Page

Below are the slots and APIs that are available when building a plugin for the Product page.

Important: The slots and APIs are different depending on which version of Wix Stores a user has on their site. Your app should identify in its listing which version it works for.

Plugin slots

The following images show the slots available in the Product page, into which users can add plugins. The locations of slots differ slightly depending on which version of Wix Stores and which page layout a site is using.

New product page

Note: If using the product-page-media-1 slot, it may overlap with the thumbnail images on the left hand side in a desktop view. In this case, we recommend offering settings in your app to control the left padding.

Mobile:
Desktop:

Old product page

Mobile:
Classic:
Simple:
Sleek:
Spotlight:
Stunning:

Configure the plugin slot

In the placements array in your plugin's configuration, use an object in this format:

Copy
1
{
2
"appDefinitionId": "<WIX_STORES_APP_ID>",
3
"widgetId": "<PRODUCT_PAGE_ID>",
4
"slotId": "<SELECTED_SLOT_ID>"
5
}

Provide the following values for each property:

New product page

KeyValue
appDefinitionId"a0c68605-c2e7-4c8d-9ea1-767f9770e087"
widgetId"6a25b678-53ec-4b37-a190-65fcd1ca1a63"
slotIdID of the slot you want as displayed in the image above.

Old product page

KeyValue
appDefinitionId"1380b703-ce81-ff05-f115-39571d94dfcd"
widgetId"13a94f09-2766-3c40-4a32-8edb5acdd8bc"
slotIdID of the slot you want as displayed in the image above.

For example, for your widget to appear above the price in a new product page use the following object in your configuration:

Copy
1
{
2
"appDefinitionId": "a0c68605-c2e7-4c8d-9ea1-767f9770e087",
3
"widgetId": "6a25b678-53ec-4b37-a190-65fcd1ca1a63",
4
"slotId": "product-page-details-2"
5
}

pluginInterface and productId

For pluginInterface in your plugin's configuration, use PRODUCT. This allows you to use productId as a new property in your widget's API.

In your Blocks widget or in your app's server code, you may want to perform actions or implement logic that is dependent on the current product or related data.

You can do this using the Wix Stores APIs (Velo, REST, JavaScript SDK).

Was this helpful?
Yes
No