Skip to content

Instantly share code, notes, and snippets.

@vchub
Last active December 24, 2015 15:59
Show Gist options
  • Save vchub/6825137 to your computer and use it in GitHub Desktop.
Save vchub/6825137 to your computer and use it in GitHub Desktop.
// function creating a Produc block from data
gravRecoMainYmal = function(data){ console.log(data); }
// reco request
_gravity.push({type : 'recommendation',
callback: gravRecoMainYmal,
groupId: "mainpage",
groupSeq: 1,
groupSize: 1,
numberLimit: 16,
scenarioId: "MAIN_PAGE_YMAL",
itemOnPage: [],
resultNames: [
// Product's attributes
"itemId",
"url",
"title",
"model",
"vendor",
"features", // кратое описание характеристик товара
"buy_url", // <buy_link> for button 'buy'
"imageUrl", // <image> product's image URL
"price",
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment