Exemplo n.º 1
0
        private void AddPriceGroupSpecificField(TemplateBuilder builder, PriceGroup priceGroup)
        {
            ID priceFieldId = priceGroup.SitecoreTemplateFieldId(FieldIds.Product.SectionPricingId);

            var priceGroupFieldData = new PriceGroupFieldData {
                PriceFieldId = priceFieldId
            };

            _priceGroupFields[priceGroup.PriceGroupId] = priceGroupFieldData;

            builder.CreateNumberField(priceFieldId, GetPriceGroupName(priceGroup), 1, new List <KeyValuePair <string, string> >());
        }