Search Help:  
 
Enter keywords to search help.

What is the difference between the ID and Code fields?

The ID field is either assigned by the Store Editor or specified by the merchant (depending on the method used to create the page) and will be used in the URL for the page (for example newwidget would yield a URL of http://store.yahoo.com/accountname/newwidget.html). The Code field is unique for each item in your store and though typically for merchant-use only such as a SKU (Stock Keeping Unit) it can also be displayed on the page (such as an ISBN for books).

  • ID: Based upon the Name field when the page is created or upon the ID entered when creating the page (Advanced mode—see Creating a Specific ID).
  • Code: Use the Code field to enter a unique identifier for a product such as a SKU (Stock Keeping Unit), Inventory number, or ISBN (International Standard Book Number), depending on how you identify and track your products.

Note: If you are using Store Editor 3.0 templates, you can choose to hide the Code field on product (item) pages. For example, if you sell books, you may wish to show the Code field where you have entered an ISBN since a shopper may search for a book by that number. If you enter SKUs into the Code field, you may wish to hide the Code as it only has meaning for internal purposes.

How IDs are Assigned in the Store Editor
The ID field, in most cases, is assigned by the Store Editor based on a formula for creating a valid and unique page name based on what is entered in the Name field. When you create a new section or item by using the Section or Item buttons in the Store Editor, you will see a placeholder ID of newitem or newsection (see Figure 1).

For merchants using the Add Product Wizard, the ID will be based on the value you enter in the Product Name field. For example, if you are adding a product and you enter "Acme Brand Widget" in the Product Name field, the ID for the page will be "acme-brand-widget".

Figure 1: When you create a new item (or section) using the Item and Section buttons in the Store Editor, a placeholder ID appears. The placeholder ID (newitem or newsection) will be replaced with the ID assigned by the Store Editor based on what you enter in the Name field.

Based on what you enter in the Name field, the Store Editor will assign a valid and unique page name. The formula for assigning a page ID works as follows:

  1. Test for length and valid characters:
    1. The Store Editor splits whatever is entered into the Name field into words based on spaces between words.
    2. Spaces as well as the articles "a", "an", and "the" are stripped out.
    3. If equal to or less than 13 characters, proceed to step two to test for unique page ID.
    4. If greater than 13 characters, words of more than 3 characters are truncated to 2 characters and combined to form the ID.
  2. Test for unique page ID:
    1. If page ID does not exist, then ID from step 1 is assigned to the page and will be used for the page URL.
    2. If page ID already exists, a number starting with 1 is appended to the result of step 1 until a unique page ID is found. Once found, that page ID is assigned.

Example Name and Resulting IDs

Name Entered[/size] Details Action Resulting ID
cheap widget 11 characters, first instance space removed, no truncation cheapwidget
shiny cheap widget 16 characters, first instance space removed, words truncated to 2 letters and combined shchwi
new shiny cheap widget 19 characters, first instance, one word 3 or less characters space removed, words truncated to 2 letters (except for "new" being 3 or less characters) and combined newshchwi
cheap widget 11 characters, second instance space removed, no truncation, number 1 appended cheapwidget1
don't bother 12 characters, first instance space removed, no truncation, non-alpha-numeric character removed dontbother

Creating a Specific ID
You can also choose to create specific IDs in the Advanced mode of the Store Editor. Creating specific IDs can be useful for search engine optimization purposes by inserting keywords into the URLs of pages. Page names must still be unique and valid (only letters, numbers, and dashes).

To create a specific ID for a page:

  1. From the Store Manager, click Store Editor.
  2. Switch to Advanced mode by clicking the red arrow appearing in the Editor Toolbar. You should see two rows of buttons now.
  3. Click Contents.
  4. Click New.
  5. Enter an ID. Note: since this name will be used as part of the page URL, you can only use letters, numbers, and dashes (see Figure 2).
  6. Select a Type (item is the default when creating an item).
  7. Click Continue.
Figure 2: The Create New Object window appears after clicking New on the Contents page in the Advanced mode of the Store Editor. Enter the ID you wish to use in the ID field, select a Type and click Continue.

You will be taken to the Edit view of the page where you can edit the page as you wish. Click Update when finished. To have the page you created appear under another section, do one of the following:
  • Click Cut in the Editor Toolbar, navigate to the section where you wish to add the page, and click the page name in the Clipboard appearing under the Editor Toolbar (see Figure 3).
  • Add the ID of the page you wish to add to the Contents field of the page to which you wish to add the page.

Figure 3: When you Cut a page in the Store Editor, the Clipboard will appear below the Editor Toolbar. Click the link for the page you wish to add when you are on the section or item page where you wish the new page link to appear.

Was this article helpful?

Yes   No
Click to contact Customer Care for further assistance.