Share via


How To Modify Site Content

Use the following procedure to edit the site links and site redirections so that they point to the correct location within the site variation. You must complete these steps for each site variation that you create.

Important   The steps in the list item DefaultSiteCheckoutSteps use hard coded paths. When you create a site variation and have manually created the same list in the sub-site, you must edit each step to append the language sub-site name to the path

To modify static site content

  1. Using SharePoint Designer, navigate to the default zone (intranet facing) of your SharePoint 2010 e-commerce site.

  2. In the Site Objects pane, click All Files. The All Files tab opens.

  3. In the All Files window, click Commerce Server Templates. SharePoint Designer displays a list of folders that match the Web Parts used by the site.

  4. Open the Cart web part folder.

  5. Copy the DefaultSite_Cart and paste into the sub-site folder that matches the language site variation you created earlier, for example, English > sub-site folder > Commerce Server Templates > Cart.

  6. Repeat steps 3 through 5 for the following folders and files:

    • Checkout folder, DefaultSite_OrderReview file

    • ProductDetails folder, DefaultSite_ProductCrossSells file

    • ProductDetails folder, DefaultSite_ProductDescription file

    • ProductDetails folder, DefaultSite_ProductDetails file

    • ProductQuery folder, DefaultSite_ProductQuery file

  7. Repeat steps 3 through 6 for each language site variation sub-site.

  8. Using SharePoint Designer, navigate to the source site variation of the default zone (intranet facing) (for example, https://server: 8088/English/Pages/default.aspx if your source site variation is in English).

  9. In the Site Objects pane, click All Files. The All Files tab opens.

  10. In the All Files window, click Commerce Server Templates. A list of folders that match the Web Parts used by the site is displayed.

  11. Click a Web Part folder, for example MiniCart, to open it. A list of the XSLT and/or template files for the selected Web Part is displayed. For example, the MiniCart Web Part folder contains the following files: DefaultSite_MiniCart.xslt and Sample_MiniCart.xslt.

  12. Select the DefaultSite_MiniCart.xslt and then, in the Customization section, click Edit file. The file opens.

  13. In the open file, look for the following and make these edits:

    1. Locate and localize any static text in the XSLT file such "My Shopping Cart" to the appropriate language.

    2. Update all links to reflect the language name for the site variation. For example, the DefaultSite_MiniCart.xslt file contains the line <a href=”{SiteCollectionUrl}/Pages/Cart.aspx” title=”My Shopping Cart”>. Edit this line to read <a href=”{SiteCollectionUrl}/English/Pages/Cart.aspx” title=”My Shopping Cart”>.

    3. If the Web Part displays a currency type, then update the string about how to display the currency to display the appropriate currency.

    4. Save your changes and close the file.

  14. Repeat steps 8 through 14 for each file that begins with "DefaultSite_" in each Web Part folder for the site variation.

  15. Repeat steps 8 through 15 for each site variation.

    Note

    Use Visual Studio 2008 to open and edit files with that have a .template file extension.

  16. Browse to the default zone (intranet facing) of the source site variation, for example, https://server: 8088/English/Pages/default.aspx.

  17. Click Site Actions, and then click View All Site Content.

  18. On the All Site Content page, in the Document Libraries section, open the Pages folder.

  19. On the All Documents page, select the document name CustomerService.aspx, and from the drop-down menu, click Edit with SharePoint Designer.

  20. When prompted, click OK to check out the page.

  21. Complete the required edits to the page, and then save your edits. When asked to replace the file with the file you have just edited, click Yes.

  22. Repeat steps 16 through 21 for any other pages that contain static links or text that needs to be updated.