About the Product types feature
Photoslurp Product types feature enables integrators to adapt the content displayed in a Photoslurp widget to the context of the store section where it will be shown.
This way, the content displayed in a widget can be dynamically filtered to show only images for which their assigned products match some specific criteria in the product catalogue associated to a campaign.
Below are some examples that show how the content displayed can be filtered. These examples simulate a carousel widget shown in 3 different sections of an outdoor activities booking site:
- Category pages in which the travel experiences take place in a specific continent.
- Category pages in which the travel experiences take place in a specific country.
- Category pages in which the travel experiences are organised by the type of activity.
Setup
In order to make use of the Product types feature the product feed used to maintain the Photoslurp product catalogue must include "product types" section containing any or all of the following information:
- Heterogenous criteria separated by commas (i.e. ,category, location, activity, ...)
- Hierarchical information (i.e. product categorization) with elements separated by the "greater than" (>) symbol (e.g. "Europe > Norway > Hiking").
If the product feed is in CSV format, this information is required to be included in the product_types column. If the product feed is in Google Shopping Feed's format, this information should go under the <g:product_type> tag.
Once this information is made available in the product catalogue, filtering images is as simple as setting the additional parameter "productType" in the widget code. In order to do this, take the following JavaScript code as an example:
photoSlurpWidgetSettings["YOUR WIDGET ID"] = {
lang: "INSERT LANGUAGE ID HERE",
productType: ["INSERT PRODUCT TYPE HERE"]
};
You can use a variable from your E-Commerce platform templating engine to set the criteria used in the productType parameter. Thus, images for which the assigned products match this criteria will be the ones shown in the widget. The productType parameter accepts a single string or an array of strings separated by commas as its value.
Product feed example using product_types
The example widgets below show different images depending on the criteria specified in the productType widget parameter value.
The catalogue used in this example comes from a product feed that contains the following product_types information:
- Product "0001" product_types value is "europe, norway, aurora"
- Product "0002" product_types value is "europe, norway, kayak"
- Product "0003" product_types value is "europe, norway, hiking"
- Product "0005" product_types value is "america, costa_rica, kayak"
- Product "0006" product_types value is "america, costa_rica, hiking"
Location example 1
If you've arrived on this page by following an Installation guide, just click here to go back to the step you were in: