This file contains 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
var glob = require('glob'); | |
var xml2js = require('xml2js'); | |
var fs = require('fs'); | |
const [, , ...args] = process.argv; | |
const pattern = args[0]; | |
glob(pattern, function (er, files) { | |
for (const file of files) { |
This file contains 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
var shippingParty = new CommerceParty | |
{ | |
Name = Constants.ShippingAddressCommerceName | |
}; | |
var parties = new List<Party> { shippingParty }; | |
parties.AddRange(cart.Parties.ToList()); | |
cart.Parties = parties; |
This file contains 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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MappingEntries.aspx.cs" Inherits="Sitecore.sitecore.admin.AdminPage" %> | |
<%@ Import Namespace="Sitecore.Commerce.Engine.Connect.DataProvider " %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
repeater.DataSource = CatalogRepository.MappingEntries; | |
repeater.DataBind(); | |
} |
This file contains 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
using System.Web.Optimization; | |
using WebActivatorEx; | |
[assembly: PreApplicationStartMethod(typeof(BundleConfig), "Configure")] | |
namespace MyProject | |
{ | |
public class BundleConfig | |
{ |
This file contains 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
private IEnumerable<ProductAdvisorStep> MapSteps(ChildList children) | |
{ | |
return children.SelectMany(GetStep); | |
} | |
private Maybe<ProductAdvisorStep> GetStep(Item item, int index) | |
{ | |
string facetName = | |
Context.Database.GetItem(item.Fields[ProductAdvisorDataFields.StepFacetField]?.Value)?.Name; |