This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Tile: Product Top Seller", | |
"description": "Image, text overlay, 'Shop Now' control that links user to a PDP of the best selling product in a category; Image is defined by the selected product", | |
"group": "assets", | |
"attribute_definition_groups": [ | |
{ | |
"id": "search_params", | |
"name": "Search Parameters", | |
"description": "Please select a category to search for a top seller.", | |
"attribute_definitions": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Script file for rendering an assets.topsellertile component | |
*/ | |
//Initialize constants | |
const Template = require('dw/util/Template'); | |
const HashMap = require('dw/util/HashMap'); | |
const URLUtils = require('dw/web/URLUtils'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button.shop_now=Shop Now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<isscript> | |
var assets = require('*/cartridge/scripts/assets.js'); | |
assets.addCss('/css/producttile.css'); | |
assets.addCss('/css/component.css'); | |
</isscript> | |
<figure class="component-figure product_centered-text"> | |
<picture> | |
<isif condition="${pdict.image}"> | |
<img class="component-image" src="${pdict.image.src}" <isif condition="${pdict.image.alt}">alt="${pdict.image.alt}" title="${pdict.image.alt}"</isif> /> | |
</isif> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"Mixed Page Layout", | |
"description":"Page Layout with a fixed set of banner and tile regions and a flexible main region", | |
"region_definitions":[ | |
{ | |
"id":"banner", | |
"name":"Banner Region", | |
"max_components":1, | |
"component_type_exclusions": [ | |
{ "type_id": "layouts.1column" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Template = require('dw/util/Template'); | |
var HashMap = require('dw/util/HashMap'); | |
var PageRenderHelper = require('*/cartridge/experience/utilities/PageRenderHelper.js'); | |
/** | |
* Render logic for the mixedlayout. | |
* | |
* @param {dw.experience.PageScriptContext} context The page script context object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iscontent type="text/html" charset="UTF-8" compact="true"/> | |
<isdecorate template="${pdict.decorator}"> | |
<isscript> | |
var assets = require('*/cartridge/scripts/assets.js'); | |
assets.addCss('/css/layout.css'); | |
assets.addCss('/css/pagedesigner-bootstrap.min.css'); | |
</isscript> | |
<!--- the page markup ---> | |
<div class="container-fluid page-container px-2"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var RegionModelRegistry = require('*/cartridge/experience/utilities/RegionModelRegistry.js'); | |
function parseRenderParameters(renderParametersJson) { | |
var renderParameters = {}; | |
if (renderParametersJson) { | |
try { | |
renderParameters = JSON.parse(renderParametersJson); | |
} catch (e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var server = require('server'); | |
server.extend(module.superModule); | |
var consentTracking = require('*/cartridge/scripts/middleware/consentTracking'); | |
var pageMetaData = require('*/cartridge/scripts/middleware/pageMetaData'); | |
var PageMgr = require('dw/experience/PageMgr'); | |
server.append('Show', consentTracking.consent, function (req, res, next) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iscontent type="text/html" charset="UTF-8" compact="true"/> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<isreplace/> | |
</body> | |
</html> |
OlderNewer