Product information

Widgets contain detailed information about products. For example, product specifications or reviews from Yandex.Market users.

In all examples, products are found using a search query.

  1. Product specifications
  2. Product reviews

Product specifications

You can set the number of expanded groups with product specifications in the specificationGroups parameter. For more information, see How to create widget code manually.

The widget width automatically adapts to the selected area.

Minimum width: 300 pixels.

Widget code

Code to be embedded in the head element:

<script async src="https://aflt.market.yandex.ru/widget/script/api" type="text/javascript"></script>
<script type="text/javascript">
  (function (w) {
    function start() {
      w.removeEventListener("YaMarketAffiliateLoad", start);
      w.YaMarketAffiliate.createWidget({
        containerId: "marketSpecs",
        type: "specifications",
        params: {
          clid: 2310490,
          searchText: "Яндекс.Станция",
          themeId: 1,
          specificationGroups: 3
        }
      });
    }
    w.YaMarketAffiliate
      ? start()
      : w.addEventListener("YaMarketAffiliateLoad", start);
  })(window);
</script>
Copied to clipboard

Code to be embedded in the body element:

<div id="marketSpecs"></div>
Copied to clipboard

Product reviews

You can specify the number of reviews per widget in the reviewsCount parameter. For more information, see How to create widget code manually.

The widget width automatically adapts to the selected area.

Minimum width: 300 pixels.

Widget code

Code to be embedded in the head element:

<script async src="https://aflt.market.yandex.ru/widget/script/api" type="text/javascript"></script>
<script type="text/javascript">
  (function (w) {
    function start() {
      w.removeEventListener("YaMarketAffiliateLoad", start);
      w.YaMarketAffiliate.createWidget({
        containerId: "marketReviews",
        type: "reviews",
        params: {
          clid: 2310490,
          searchText: "Яндекс.Станция",
          themeId: 1,
          reviewsCount: 3
        }
      });
    }
    w.YaMarketAffiliate
      ? start()
      : w.addEventListener("YaMarketAffiliateLoad", start);
  })(window);
</script>
Copied to clipboard

Code to be embedded in the body element:

<div id="marketReviews"></div>
Copied to clipboard