1 / 15

partechgss/inventory

Web Test:. There is a web service at the following URL:. http://www.partechgss.com/inventory. This service generates an XML list of inventory for imaginary office supply products. This list will generate a random number of products with random names, quantities and prices.

saddam
Download Presentation

partechgss/inventory

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Test: There is a web service at the following URL: http://www.partechgss.com/inventory • This service generates an XML list of inventory for imaginary office supply products. • This list will generate a random number of products with random names, quantities and prices. • Each product has an ID, name, price, quantity in stock and image. • Here’s an example: <product> <product_id>GKWB929E9E</product_id> <product_name>Gadget 7</product_name> <unit_price>2.00</unit_price> <quantity_in_stock>3</quantity_in_stock> <product_img>/images/inventory/3.png</product_img> </product> http://www.partechgss.com/images/inventory/3.png Use the content returned by this service to generate a shopping cart (see next slides)

  2. Retrieve New Inventory Gadget 7 Gizmo B In Stock In Stock $2.00 $11.00 Widget S In Stock $32.00 $0.00 Cart Total:

  3. Retrieve New Inventory Gadget 7 Gadget 7 Gizmo B In Stock In Stock In Stock $2.00 $2.00 $11.00 Each gray box should be able to be dragged and dropped into the green cart area. When the cart is hovered over with a product, have it change colors to indicate activity. Widget S In Stock $32.00 $0.00 Cart Total:

  4. Retrieve New Inventory Gadget 7 Remove Qty: 1 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 When the item is dropped, it is inserted into the cart and the cart total is updated. Widget S In Stock $32.00 Checkout $2.00 Cart Total:

  5. Retrieve New Inventory Gadget 7 Remove Qty: 1 Gadget 7 Gadget 7 Gizmo B $2.00 In Stock In Stock In Stock $2.00 $2.00 $11.00 If the same item is dropped into the cart again, the quantity and cart totals should update accordingly. Widget S In Stock $32.00 Checkout $2.00 Cart Total:

  6. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 Widget S In Stock $32.00 Checkout $4.00 Cart Total:

  7. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 Widget S In Stock Widget S In Stock $32.00 $32.00 Checkout $4.00 Cart Total:

  8. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock Widget S Remove Qty: 1 $32.00 $2.00 $11.00 Widget S In Stock $32.00 Checkout $36.00 Cart Total:

  9. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock Widget S Remove Qty: 1 $32.00 $2.00 $11.00 Clicking a “Remove” button will remove the item from the cart and update the total accordingly. Widget S In Stock $32.00 Checkout $36.00 Cart Total:

  10. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 Widget S In Stock $32.00 Checkout $4.00 Cart Total:

  11. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 When the “Retrieve New Inventory” button is clicked, retrieve another set of data from the web service and replace the current results with the results returned. Widget S In Stock $32.00 Checkout $4.00 Cart Total:

  12. Retrieve New Inventory Gadget 7 Remove Qty: 2 Gadget 7 Gizmo B $2.00 In Stock In Stock $2.00 $11.00 Please wait. Retrieving results… Widget S In Stock $32.00 Checkout $4.00 Cart Total:

  13. Retrieve New Inventory Gadget 7 Remove Qty: 2 Widget M Apparatus 7 $2.00 In Stock In Stock $78.00 $48.00 Widget W Device T In Stock In Stock $34.00 $83.00 Checkout $4.00 Cart Total:

  14. Retrieve New Inventory Gadget 7 Remove Qty: 2 Widget M Apparatus 7 $2.00 In Stock In Stock $78.00 $48.00 When the “Checkout” button is clicked, serialize the items in the cart however you see fit. Display the serialized data as a string and alert it. This string should be able to be sent to another script (via POST) for processing. Required data to gather for each item: Product ID, quantity in cart, unit price. Widget W Device T In Stock In Stock $34.00 $83.00 Checkout $4.00 Cart Total:

  15. Notes: • The purpose of the activity is to judge the quality of the approach you take in handling both the server-side (PHP) and client-side (Javascript) components of the application. • Time is a factor. Consideration will be given to those who design to the exact specifics (color, layout, form and function) laid out here in the fastest amount of time. Extra effects and functionality are certainly welcome (but NOT necessary) as long as they fit reasonably well within the limitations established in this presentation and are done in a reasonable amount of time. • Watch out for items with quantity 0. If an item does not have any units in stock, do not display it. • Watch out for scrolling issues. If there are many items in the inventory, make sure the list of items can be navigated while keeping the cart area on the screen at all times. • We will be judging your results for consistency in all browsers (IE9, Firefox 10, Chrome 16, Safari 3) so please consider this when developing.

More Related