To further improve the accuracy and value of product recommendations, you can customize which products are exported for use by Perform, and which product data is included. This article lists options for customizing exported product information.
The export function has a few properties that can be set via code on the default CatalogFeedSettings instance:
var catalogFeedSettings = ServiceLocator.Current.GetInstance<CatalogFeedSettings>(); catalogFeedSettings.DescriptionPropertyName = "...";
|ExcludedAttributes||Product properties to exclude from the catalog feed.|
|DescriptionPropertyName||The product feed requires each item (product) to have a description. Set this value to the property name to use as description. Default value is "Description".|
|AssetGroupName||The first asset in this group is used for the item's image link. The default value is "default".|
To use the following API extension points, add a custom implementation of an interface and register it in the dependency injection container. For more information, see the Dependency Injection article in the CMS Developer Guide.
Implement this interface to exclude entries from the export. The default implementation excludes any entry that is not published.
This interface has methods that should return the quantity available for purchase. There are two methods:
This interface has methods for getting the entry's URLs and an image representing the entry. These URLs are fed back in the recommendation data and are also used in other channels.
This interface lets you control which prices are used for an entry in the export. Each price consists of a default price and a sale price. You should return one price for each currency for which the entry has a price.
The default implementation gets all prices in all currencies for each market, using the AllCustomers price type, and selects the lowest unit price for each currency. For each price, the interface calls IPromotionEngine.GetDiscountPrices with the price's currency and market to get a sale price for the entry.
This interface contains three methods for getting product information:
Last updated: Nov 03, 2017