How To Set Up Your Site Variations

To set up site variations for the SharePoint 2010 Solution Storefront site, the site collection in which you initially deployed the SharePoint 2010 Solution Storefront site must use the English (United States) locale. The SharePoint Commerce Services Configuration Wizard automatically sets the correct locale when it creates the site collection. If you deployed the site manually, verify the site's regional settings in SharePoint 2010.

Perform the following procedures to set up your commerce site variations:

  • Set up the source language variation

  • Delete lists/libraries indices

  • Create site variations for target languages

  • Create lists/libraries indices

Set up the source language variation

To set up the source (English) language site variation

  1. Make a copy of the file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\XML\WEBTEMP.SPServerCSStorefrontSite.xml

  2. Put the copy created in step 1 into the <locale>\XML folder for each language pack you have installed, and for which you want to create site variations.

    The full path for each folder is:

    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\<locale>\XML\.

    Note

    For a list of the Local IDs (LCIDS) that Microsoft uses see https://go.microsoft.com/fwlink/?LinkId=147987.

  3. Access the default zone (internal facing) of the SharePoint 2010 Solution Storefront site as an administrator: http://<server>:<port>/Pages/default.aspx. 

  4. On the default.aspx page, click Site Actions, and then click Site Settings.

  5. On the Site Settings page, in the Site Collection Administration section, click Variations.

  6. On the Variation Settings page, do the following:

    Use this

    To do this

    Location

    Type a single forward slash "/".

    Resources

    Select Copy resources.

  7. Leave all other parameters at their default values, and then click OK.

  8. On the Site Settings page, in the Site Collection Administration section, click Variation Labels.

  9. On the Variation Labels page, click New Label. Depending on your locale, you should set up the first site variation to match the default language for your location, as this will be the source variation. For example, if you were in the United States then your first site variation would be English.

  10. On the Create Variation Label page, do the following:

    Use this

    To do this

    Label Name

    Type a label for the site variation, for example, type English.

    Description

    Type a description for the site variation.

    Display Name

    Type a display name for the site variation, for example, type English.

    Locale

    Select the locale of the source variation.

  11. In the Hierarchy Creation section, select Publishing Sites and All Pages.

  12. In the Source Variation section, select Set this variation to be the source variation, and then select the Commerce Server Solution Storefront Site 2010 publishing site template from the drop-down list.

  13. Click OK.

  14. On the Variation Labels page, click Create Hierarchies, and then click OK.

  15. The hierarchy creation is based on a schedule defined in SharePoint Central Administration. Perform the following steps in SharePoint Central Adminsitration to manually start the SharePoint 2010 Variations Hierarchies Job Definition:

    1. Log on to the server as an administrator and then start SharePoint 2010 Central Administration.

    2. Select Monitoring and then click on Review job definitions.

    3. Click Variations Create Hierarchies Job Definition.

    4. On the Edit Timer Job page, click Run Now.

    5. Exit the SharePoint 2010 Central Administration

  16. Return to your browser window where you left off on step 14 (the default zone's Site Settings page) and refresh the window to display the label of the source site variation (for example, English).

  17. In the left pane, click English. The browser displays http://<server>:<port>/English/Pages/default.aspx, which is the home page for the English site variation.

Delete lists/libraries indices

SharePoint 2010 does not allow changing the Locale of a site if the site has indexed lists or libraries. In the Solution Storefront site we have created three indexed lists:

  • ProductRatingAverageList

  • ReviewRatingTemplatesSampleData

  • Reviews and Ratings

Delete lists/libraries indices

  1. Access the default zone (internal facing) of the SharePoint 2010 Solution Storefront site as an administrator: http://<server>:<port>/Pages/default.aspx. 

  2. On the default.aspx page, click Site Actions, and then click Site Settings.

  3. Under Site Administration,click Site libraries and lists.

  4. Click on Customize "ProductRatingAverageList".

  5. Under Columns, click on Indexed columns.

  6. Take note of the list of indices. You will need this information to re-create these indices after creating site variations for target languages.

  7. Click on the first column of the list to open the Edit index page.

  8. Click on Delete.

  9. Repeat steps 6 and 7 for all indices on this list.

  10. Repeat steps 4-9 for the following lists:

    1. ReviewRatingTemplateSampleData

    2. Reviews and Ratings

Note

You must follow steps 4-9 to delete indices on all third party lists/libraries you have created.

Create Site Variations for Target Languages

To create site variations for target languages

  1. Access the default zone (internal facing) of the SharePoint 2010 e-commerce site as an administrator: http://<server>:<port>/Pages/default.aspx.

  2. On the default.aspx page, click Site Actions, and then click Site Settings.

  3. On the Site Settings page, in the Site Collection Administration section, click Variation Labels.

  4. On the Variation Labels page, click New Label and do the following to create a new variation label:

    Use this

    To do this

    Label Name

    Type a label for the site variation, for example, type German.

    Description

    Type a description for the site variation.

    Display Name

    Type a display name for the site variation, for example, type German.

  5. In the Locale section, select the locale of the site variation.

  6. In the Language section, select the Site Template Language for the site variation.

  7. In the Hierarchy Creation section, select Publishing Sites and All Pages.

    Note

    In the Source Variation section, options are unavailable as the source variation has already been set.

  8. Click OK to save.

  9. Repeat these steps to add a site variation for each required language.

  10. On the Variation Labels page, click Create Hierarchies and then click OK.

  11. The hierarchy creation is based on a schedule defined in SharePoint Central Administration. Perform the following steps in SharePoint Central Administration to manually start the SharePoint 2010 Variations Hierarchies Job Definition.

    1. Log on to the server as an administrator and then start SharePoint 2010 Central Administration.

    2. Select Monitoring and then click on Review job definitions.

    3. Click Variations Create Hierarchies Job Definition.

    4. On the Edit Timer Job page, click Run Now.

    5. Exit the SharePoint 2010 Central Administration

  12. Return to your browser window where you left off on the default zone's Site Settings page (step 13) and refresh the window to display the label of the site variations you created.

  13. In the left pane, click one of the languages that you set up. The browser displays http://<server>:<port>/<language>/Pages/default.aspx, which is the home page for the target language site variation.

Create lists/libraries indexes

In the Solution Storefront site we must now re-create the indexes that were previously deleted. 

Create lists/libraries indexes

  1. Access the default zone (internal facing) of the SharePoint 2010 Solution Storefront site as an administrator: http://<server>:<port>/Pages/default.aspx. 

  2. On the default.aspx page, click Site Actions, and then click Site Settings.

  3. Under Site Administration,click Site libraries and lists.

  4. Click on Customize "ProductRatingAverageList".

  5. Under Columns, clink on Indexed columns.

  6. Click on Create a new index to open the Edit index page.

  7. For Primary Column, select the first item you noted in Step 6, Delete list/libraries indices.

  8. Repeat steps 5-7 for all indexed columns you have noted.

  9. Repeat steps 4-8 for the following lists:

    1. ReviewRatingTemplateSampleData

    2. Reviews and Ratings

Note

You must follow steps 4-8 to create indices for third party lists/libraries.