Skip to content

Instantly share code, notes, and snippets.

View jorgehernandezSF's full-sized avatar

Jorge Hernandez jorgehernandezSF

  • Salesforce.com
View GitHub Profile
@jorgehernandezSF
jorgehernandezSF / topsellertile.js
Created April 24, 2019 03:02
Top Seller Tile component type: rendering script
'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');
@jorgehernandezSF
jorgehernandezSF / topsellertile.json
Created April 23, 2019 21:58
Top Seller Tile component type: meta definition
{
"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": [