Share via


Changing Catalog.asp

Edit the catalog.asp file so that catalog set restrictions can be viewed from the site.

To change Catalog.asp

  1. Open the catalog.asp file by using a plain-text application such as Microsoft Notepad. The catalog.asp file is located in the <drive>:\inetpub\wwwroot\<site name>\include folder on the Commerce Server computer, where <drive> is the drive where IIS is installed.

  2. Within the catalog.asp file, search for the function mscsUserCatalogsetID.

  3. Within this function, search for the text string:

    Set rsOrg = rsGetProfileByKey(FIELD_ORG_ORG_ID, org_id, PROFILE_TYPE_ORG, False)

  4. Replace this text string with the following text:

    Set rsOrg = rsGetProfileByKey(FIELD_ORG_NAME, org_id, PROFILE_TYPE_ORG, False)

  5. Within the catalog.asp file, search for the following function:

    mscsUserCatalogsFromID(ByVal CatalogSetID)
    
  6. Within this function, search for the following text:

    Set mscsCatalogSets = Server.CreateObject("Commerce.CatalogSets")
    
  7. Replace the text listed above with the following text:

    Set mscsCatalogSets = Server.CreateObject("Commerce.CatalogSets2")
    mscsCatalogSets.OrganizationObjectJoinKey  = FIELD_ORG_NAME
    
  8. Within the catalog.asp file, search for the following function:

    mscsUserCatalogs
    
  9. Replace all of the text in this function with the following text:

    Dim userCatalogsetID
    userCatalogsetID = mscsUserCatalogsetID()
    set mscsUserCatalogs = mscsUserCatalogsFromID(userCatalogsetID)
    

Copyright © 2005 Microsoft Corporation.
All rights reserved.