...
You can add filter for the Product View recommendation widgetwidgets.
Panel |
---|
title | Available Values for Filtering |
---|
|
Name, Category, ProductName, Brand, Color, Material, Gender, AgeGroup, Attribute1, Attribute2, Attribute3, Attribute4, Attribute5, FreeShipping ( “true” veya “false” ), ShippingOnSameDay (“true” veya “false”) |
Code Block |
---|
|
new VL_OfferFilter("Name",VLOfferFilterType.Include,"Value"); |
- Value: These values are comes from the product file. The filtering value must be the same as the value sent in the product file.
- Type: Takes VLOfferFilter.Include & VLOfferFilter.Exclude as filter type. Determines whether products should be imported according to the given value.
Code Block |
---|
language | js |
---|
title | Example Usage |
---|
linenumbers | true |
---|
|
<script>
var arrFilter = [];
var filterColor = new VL_OfferFilter("COLOR", VL_OfferFilterType.Include, "Mavi");
var filterBrand = new VL_OfferFilter("BRAND", VL_OfferFilterType.Include, "Nike");
arrFilter.push(filterColor);
arrFilter.push(filterBrand);
var vl = new Visilabs();
vl.AddParameter("json",true);
vl.Suggest(ZoneID,null,ViewedProductCode,callBack,null,arrFilter);
</script> |
...