Edit Category

About these pages

This page will be used to edit the information about the selected category.
 
If the user presses the "Save" button: The form is submitted. The scripts do a validation check, e.g. it checks to see if all the required fields have been filled in. If the data is valid, then the script calls the appropriate stored procedure to update the merchant database with the new values. We then go back to the previous page.
If the user presses the "Cancel" button: We simply go to the previous page.
 
Category Name
EM_Category.Name.
 
Description
EM_Category.Description.
 
Image for this category
Upload will take the user to another page that will let the user upload an image from his computer. The path to the file where the uploaded image is stored will be the new value of the EM_Category.ImageURL
Automatically create an image. The details of the process that creates the image will be described later. .The path to the file where this newly created image is stored will be the new value of the EM_Category.ImageURL
Display the graphic contained in the file pointed to by the EM_Category.ImageURL.
 
Sub-Categories within this category
The items in the selection box correspond to all the sub-categories (if any) within this category. These may be obtained by running an appropriate query on the ES_CategoryOrg table and then getting the displayable names of these categories from the ES_Categories table.

Edit the sub-category selected in the selection box above.

Add (create) a new sub-category.

Delete the sub-category selected in the selection box above.

Move the sub-category up in the sub-category list for the given category. In other words modify the EM_CategoryOrg.DisplayOrder parameters for the Sub-Categories for the given category. This should involve a redisplay of the above list, i.e. this may involve a page redisplay...

Move the sub-category down in the sub-category list for the given category. In other words modify the EM_CategoryOrg.DisplayOrder parameters for the Sub-Categories for the given category. This should involve a redisplay of the above list, i.e. this may involve a page redisplay...
 
Products in this category
The items in the selection box correspond to all the products (if any) within this category. These may be obtained by running an appropriate query on the ES_CategoryProduct table and then getting the displayable names of these categories from the ES_Product table.

Edit the product selected in the selection box above.

Add (create) a new product.

Delete the product selected in the selection box above.

Move the product up in the product list for the given category. In other words modify the EM_CategoryProduct.PromotionOrder parameters for the Products for the given category. This should involve a redisplay of the above list, i.e. this may involve a page redisplay...

Move the product down in the product list for the given category. In other words modify the EM_CategoryProduct.PromotionOrder parameters for the Products for the given category. This should involve a redisplay of the above list, i.e. this may involve a page redisplay...