Amazon ecs php project
Simple Store using Amazon E-Commerce Services ecs
This is a simple php mysql store. Here products of different categories in amazon website can be searched. The products details can be viewed they can be added to the shopping cart. Then they can be purchased using credit card from the amazon web site. All of this is possible using amazon ecs
The major functionalities involved in this project are as follows
- Search for products in amazon
- View Product Details
- Create a shopping cart
- Add products into the cart
- Delete any products from the cart
- View the items in the cart
- Checkout the cart via credit card payment.
For each of the functionalities mentioned above there is a separate API call to the amazon web service. The API requires a ACCESS KEY ID . A unique ACCESS KEY ID will be provided upon registering for the Amazon Web Services Account.
Search for products:
This php mysql API requires a product category name, a search keyword and the unique ACCESS KEY ID. This API will return an XML response string with the list of products matching the search keyword and the products keyword. Each Item is uniquely identified by an OfferListingID.
If the number of results are very large then we have to set the API to return N results per page and we can navigate to next set of results with the same API providing the page current page number.
This API will return details like product name, manufacturer, author, publisher, product image and other products relevant information.
View Product Details:
This amazon API required the unique PRODUCT ID. This will return a XML string will all the details about the product. The API is used with our php mysql scripts.
Create Shopping Cart:
To create a shopping cart a product should be added initially. It required the ACCESS ID, unique OfferListingID. This will create a shopping cart and will return a CART ID and the HASH value. This CART ID and the HASH value have to used to refer the cart in all the conditions.
Add and Delete Products From Cart:
To add or delete a product it requires the products OfferListingID. This amazon ecs API adds or deletes that products and returns a XML string that have the details of the remaining items in the shopping cart.
View the items in the cart:
This amazon API requires the CART ID and HASH value. This will return the the details of the items in the shopping cart. The details will include the items listing id,quantity, price and over all total of the items in the cart. It will also return a PURCHASE URL which will refer to the items in the cart.
Checkout the cart via credit card payment:
The PURCAHSE URL got in previous API is used to checkout the items in the cart. This will take to the amazon website where credit card payment will be made.
With these API our web developer team developed a simple cart where customers can search for any products add them to the shopping cart and purchase via credit cards.
The Search will land in the products listing page. The images from the listing can be dragged and dropped into the cart. The drag drop process will be smooth enough that it will appear similar to dropping a item in the basket virtually.
The drag drop feature was done using AJAX.
The above amazon ecs project was done by of software developers.