Editing Web Pages

Web developers can edit web pages to include custom code or features. Using the Web HTML Maintenance feature, you can open any page's programming code for viewing or editing. You can also undo edits. Similar features allow you to edit e-mail templates.

Before editing any pages, ensure you have a solid understanding of the following information:

To view web page source code:

  1. From the System > Custom > Web Commerce menu, select Web HTML Maintenance.

  2. At the Web Order Entry prompt, enter the web order entry level your company uses to open the Web Level HTML Maintenance screen.

The following information displays for each web page defined in your web site:

Field

Description

Description

Describes the web page. For example, the Account Login page is the page where your customers log in to your site.

HTML

Indicates whether the page code is original, as provided by Eclipse, or has been modified. "Site" displays in this field when a page is opened in the system for editing.

  1. Use the cursor to select a page for viewing.

  2. Use the View Original hot key to open the original page code for viewing only.

  3. Press Esc to close the viewing screen. The system does not save any changes.

To edit web page source code:

  1. From the System > Custom > Web Commerce menu, select Web HTML Maintenance.

The following information displays for each web page defined in your web commerce system:

Field

Description

Description

The web page description. For example, the Account Login page is the page where your customers log in to your site.

HTML

Indicates whether the page code is Original, as provided by Eclipse, or has been modified. Site displays in this field when a page is opened in the system for editing.

  1. Use the cursor to select a page for editing.

  2. Use the Edit hot key to open the programming code for editing.

Important: Do not alter any code designated with &CODE$ when editing web pages. Codes with this designation are variables used to extract data from the database. Altering these variables could cause the web site to stop functioning properly.

  1. When you finish editing, press Esc to close the editing screen and save your changes.

  2. Press Esc again to close the Web HTML Maintenance screen.

  3. Test the pages you edited in a web browser to ensure they behave as expected.

To undo edits to web pages:

  1. From the System > Custom > Web Commerce menu, select Web HTML Maintenance.

  2. At the Web Order Entry prompt, enter the web order entry level your company uses to open the Web Level HTML Maintenance screen.

  3. Use the cursor to select a page and use the Undo Custom hot key.

  4. Respond to either of the following prompts:

Prompt

Description

Undo Changes to <web page file name> (Y/N)

Displays if the page has only been edited one time. Enter Y to revert to the original page code. The HTML field indicator changes back to Original.

Undo <web page file name> Ver# <revision number>/All Versions/Nothing? (V/A/N)

Displays if the page has been edited more than one time. Enter A to revert to the original page code, undoing All Versions, or enter V to only undo the version number listed in the prompt. Enter N to take no action.

After undoing all changes, the HTML field indicator changes back to Original.

See Also:

Setup Requirements for Web Commerce