1{
2 "metadata": {
3 "title": "Recently Viewed By You",
4 "recsKey": "3a5580bf-c5b2-407e-acac-4a58ae730b64",
5 "pageType": "HOME",
6 "logic": "RECENTLY_VIEWED",
7 "maxProducts": 5,
8 "productThreshold": 1,
9 "enabled": true
10 },
11 "search": {
12 "basePath": "eucs19v2.ksearchnet.com/cs/v2/search",
13 "payload": "{\"recordQueries\":[{\"id\":\"klevuRECSItemList\",\"typeOfRequest\":\"SEARCH\",\"settings\":{\"typeOfRecords\":[\"KLEVU_PRODUCT\"],\"limit\":5}}]}"
14 },
15 "templates": {
16 "base": "<% var metadata = data.metadata; var logic = (metadata.logic) ? metadata.logic : \"\"; var pageType = (metadata.pageType) ? metadata.pageType : \"\"; var recsKey = (metadata.recsKey) ? metadata.recsKey : \"\"; var title = (metadata.title) ? metadata.title : \"\"; %> <div class=\"kuRECSContainer\" data-logic=\"<%= logic %>\" data-recskey=\"<%= recsKey %>\" data-page-type=\"<%= pageType %>\"> <% var recommendationItemList = klevu.getObjectPath(data,\"query.klevuRECSItemList.result\");%> <% if(recommendationItemList && recommendationItemList.length) { %> <div class=\"kuRECSHeader\"> <h3 class=\"kuRECSTitle\" title=\"<%= klevu.dom.helpers.escapeHTML(title) %>\"> <%= title %> </h3> </div> <div class=\"kuRECSWrap\"> <div class=\"kuRECSResults\"> <div class=\"kuRECSResultsInner\"> <% helper.each(recommendationItemList, function(key, item){ %> <div class=\"kuRECS-itemWrap kuRECSItem\" data-id=\"<%= item.id %>\"> <div class=\"kuRECS-item\"> <div class=\"kuRECS-itemImg\"> <a title=\"<%= klevu.dom.helpers.escapeHTML(item.name) %>\" href=\"<%= item.url %>\" data-id=\"<%= item.id %>\" class=\"kuRECSItemClick kuRECSImg\"> <img src=\"<%= item.image %>\" origin=\"<%= item.image %>\" alt=\"<%= klevu.dom.helpers.escapeHTML(item.name) %>\" onerror=\"klevu.dom.helpers.cleanUpProductImage(this)\" class=\"prodImg\" width=\"100%\"> </a> </div> <div class=\"kuRECS-itemDesc\"> <a title=\"<%= klevu.dom.helpers.escapeHTML(item.name) %>\" href=\"<%= item.url %>\" data-id=\"<%= item.id %>\" class=\"kuRECSItemClick kuRECSTitle\"> <%= item.name %> hghfghfghfghgfhfghfg </a> <div class=\"kuRECS-itemPrice\"> <% if(item.ondiscount && item.ondiscount == \"true\") { %> <% if(item.salePrice ) { %> <div class=\"kuSalePrice kuSpecialPrice\"> <%=helper.processCurrency(item.currency,parseFloat(item.salePrice) )%> </div> <% } %> <% if(item.price) { %> <div class=\"kuOrigPrice\"> <%=helper.translate(\"Original price %s\",helper.processCurrency(item.currency,parseFloat(item.price)))%> </div> <% } %> <% } else { %> <% if(item.salePrice ) { %> <div class=\"kuSalePrice\"> <%=helper.processCurrency(item.currency,parseFloat(item.salePrice) )%> </div> <% } %> <% } %> </div> </div> <div class=\"kuRECSItemBottom\"> <button data-id=\"<%= item.id %>\" data-qty=\"1\" data-url=\"<%= item.url %>\" class=\"kuRECSAddToCartBtn\">Add to Cart </button> </div> </div> </div> <% }) %> </div> </div> </div> <% } %> </div>"
17 },
18 "styles": {
19 "base": ".kuRECSContainer{ position:relative; margin:15px 0px;}.kuRECSContainer .kuRECSHeader .kuRECSTitle{ display:block; font-size:18px; font-weight:bold; margin:20px 0px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}.kuRECSContainer .kuRECSWrap{ max-width:100%; position:relative; padding:0px; box-sizing:border-box; font-family:inherit; overflow:hidden;}.kuRECSContainer .kuRECSWrap *{ outline:none;}.kuRECSContainer .kuRECSResults{ width:100%; max-width:100%; overflow:auto;}.kuRECSContainer .kuRECSResultsInner{ transition:-ms-transform 0.5s ease 0s, -webkit-transform 0.5s ease 0s, transform 0.5s ease 0s; position:relative; white-space:nowrap; transition:all 0.5s ease;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemWrap{ display:inline-block; margin:12px; margin-left:0px; vertical-align:top; width:180px; border:1px solid #efefef; border-radius:2px;}.kuRECSContainer .kuRECSResultsInner .kuRECS-item{ margin:0 auto; padding:12px; background:#FFF;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemImg{ display:flex; justify-content:center; align-items:center; flex-direction:column; width:100%; height:210px;}.kuRECSContainer .kuRECSResultsInner a.kuRECSImg img{ max-width:100%; height:auto; width:auto; display:inline-block; margin:0 auto;}.kuRECSContainer .kuRECSResultsInner a.kuRECSTitle{ font-size:16px; font-weight:bold; text-decoration:none; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block; color:#000;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemDesc{ margin-top:12px; box-sizing:border-box; overflow:hidden; white-space:nowrap; text-overflow:ellipse;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemTag{ color:rgba(0, 0, 0, 0.5); line-height:110%; margin-bottom:5px; min-height:20px;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemSku{ color:rgba(0, 0, 0, 0.5); font-size:80%; line-height:110%; margin-bottom:5px;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemPrice{ font-size:12px; color:#545454; margin-bottom:4px; margin-top:4px;}.kuRECSContainer .kuRECSResultsInner .kuRECS-itemPrice .kuSalePrice{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}.kuRECSContainer .kuRECSResultsInner .kuRECSAddToCartBtn{ border:0px; width:100%; padding:6px; cursor:pointer; margin-top:8px; background:#ececec; color:#000; border-radius:2px;}.kuRECSContainer .kuRECSResultsInner .kuRECSAddToCartBtn:hover{ background:#333333; color:#ececec;}"
20 },
21 "scripts": {
22 "recsObject": null
23 }
24}