Convert /cast List

 IList<IProductTypeFinderModel> to   List <ProductTypeFinderModel>

1 way 

var subProducts2 = prodTypeFilters.OfType<ProductTypeFinderModel>().ToList();

2 way 

var readers = prodTypeFilters.Cast<ProductTypeFinderModel>().ToList();





recursive c#

Top media 


private void GetproductTypeFinderModel(string parentCodestring parentName, ProductTypeFilter productTypeFilter)
        {
            var offlineCommonProvider = Providers.Offline.Common;            
 
            ProductTypeFinderModel productTypeFinderModel = new ProductTypeFinderModel();                       
 
            productTypeFinderModel.WebsiteId = CommerceFrameworkBase.Context.WebsiteId;
            productTypeFinderModel.Name = productTypeFilter.Name;
            productTypeFinderModel.Value = productTypeFilter.Value;
            productTypeFinderModel.ParentFieldName = parentCode;
            productTypeFinderModel.ParentFieldValue = parentName;
 
            // Save/inset data 
            ((ExtendedOfflineCommonProvider)offlineCommonProvider).SaveProductTypeFinderModel(productTypeFinderModel);            
 
            if (productTypeFilter.ProductTypeFilterData != null)
            {
                var childProductFilterlist = productTypeFilter.ProductTypeFilterData;
 
                foreach (var childProductTypeFilter in childProductFilterlist)
                {
                    //Call recersively 
                  GetproductTypeFinderModel(productTypeFinderModel.Name, productTypeFinderModel.Value, childProductTypeFilter);
                }
            } 

        } 














Create new Task

 Top media ExtendedSyncTask

Kavo 


change task Name : add Admin.rex

  <data name="Task_Sync" xml:space="preserve">
    <value>General information import</value>
  </data>
  <data name="Task_ProductTypeFilterTask" xml:space="preserve">
    <value>Product type filter import</value>
  </data>


/// [new CR] Ticket 100006: [Topmedia] 3.1. Search – Product Finder
 
    public class ProductTypeFilterTask : TaskBase, IWebsiteTask
    {
 
        public static readonly string TaskName = "ProductTypeFilterTask";
 
        /// <summary>
        /// Gets the name of the task.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public override string Name
        {
            get { return TaskName; }
        }







Task customization

 Top media : General iport : ExtendedSyncTask

Kavo :











When Project get error on running - internal server error

 


when first time need to follow /enable these.

  • Click "Start button"
  • in the search box, enter "Turn windows features on or off"
  • in the features window, Click: "Internet Information Services"
  • Click: "World Wide Web Services"
  • Click: "Application Development Features"
  • Check (enable) the features. I checked all but CGI.

https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path


some times we may need to update web config. 

<httpCookies httpOnlyCookies="true"requireSSL="true"sameSite="None"/>
change this one to
<httpCookies httpOnlyCookies="true"/>


install 

https://www.iis.net/downloads/microsoft/url-rewrite


it will show here




https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path


Admin side customizations

 

Ticket 113692: [Ravensburger - Phase 2] 3.3. My account – Back order details

ExtendedOrderOverviewDisplaySettingsModel
ExtendedOrderOverviewDisplaySettings
ExtendedOrderOverviewModel
ExtendedWebsiteSettings






Host file backup

 # Copyright (c) 1993-2009 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

#      102.54.94.97     rhino.acme.com          # source server

#       38.25.63.10     x.acme.com              # x client host


# localhost name resolution is handled within DNS itself.

# 127.0.0.1       localhost

# ::1             localhost

127.0.0.1 swdiversey.corp.ism.nl

127.0.0.1 frdiversey.corp.ism.nl

127.0.0.1 dkdiversey.corp.ism.nl

127.0.0.1 nldiversey.corp.ism.nl

127.0.0.1 bediversey.corp.ism.nl

127.0.0.1 atdiversey.corp.ism.nl

127.0.0.1 itdiversey.corp.ism.nl

127.0.0.1 esdiversey.corp.ism.nl

127.0.0.1 dediversey.corp.ism.nl


127.0.0.1 sfs-uk.corp.ism.nl

127.0.0.1 sfs-shop.corp.ism.nl


127.0.0.1 wahl-sanastore.corp.ism.nl

127.0.0.1 wahl-moser.corp.ism.nl

127.0.0.1 wahl-wahl.corp.ism.nl

127.0.0.1 wahlnl-sanastore.corp.ism.nl


127.0.0.1 coulisse-us.corp.ism.nl

127.0.0.1 coulisse.corp.ism.nl


127.0.0.1 integriah-dev.corp.ism.nl

127.0.0.1 integriah-dev-nz.corp.ism.nl


127.0.0.1 kavo-schokdemper-dev.corp.ism.nl

127.0.0.1 kavo-sana-dev.corp.ism.nl


127.0.0.1 florette-es.corp.ism.nl

127.0.0.1 florette.corp.ism.nl

81.255.35.116 ax.d365rec.onprem.erp

81.255.35.115 adfs.floreale.net


127.0.0.1 ravensburger-dev-ch.corp.ism.nl

127.0.0.1 ravensburger-dev.corp.ism.nl