Monday 18 February 2013

Catalog items not displayed issue-solution

After extending Catalog to a Store, some time catalog items may not be displayed, in that case follow the below instructions:


STOP THE SERVER
di-preprocess.bat <<WCS_installed_folder>>WCToolkit\search\pre-processConfig\MC_10101\DB2
START THE SERVER
di-buildindex.bat -masterCatalogId 10101
10101 -> is the Store id, it may be different in your system.

BOD - customize Noun - UserDataType

Example of code:

        String field1 = getParameterValue(parameterMap, "field1");
        String field2 = getParameterValue(parameterMap, "field2");
        String field3 = getParameterValue(parameterMap, "field3");
       
        UserDataType userData = CommerceFoundationFactory.eINSTANCE.createUserDataType();
       
        userData.getUserDataField().put("field1", field1);
        userData.getUserDataField().put("field2", field2);
        userData.getUserDataField().put("field3", field3);
       
        itemNoun.setUserData(userData);

and output of this Noun looks as below:
Noun output