Thứ Năm, 24 tháng 4, 2014

The store administration [Creating a Simple Store]

The store administration user interface is used to check the status of orders once they are created and also to manage the list of products that aravailable for sale in the store. There are twkey aspects for the store administration user interface:

        The administrator should be able to add, remove, and manage products
        The administrator should be able manage order and changstatuses using this interface
Perform the following stepfor creating the Store Admin interface:

1.       Create a necontroller for store administration, and name it
StoreAdminController.
2.       This controller will have the following basic actions:
        indexAction(): Used for listing all products
        addProductAction(): Used for adding a new product
        deleteProductAction(): Used for deleting an existing product
        listOrdersAction(): Used for listing all orders
        viewOrderAction(): Used for viewing a specific order
        updateOrderStatusAction(): Used for updating order status

3.       Create the necessary views, and map the actions accordingly.
4.       Open phpMyadmin and creattesrecords in both the store_products and
store_orders tables ttest the functionality for the administration UI.
5.       Open your favorite browser, log in to the application, and open the eStore Admin interface. The interface should look like the following one. The Manage Products page lets you add, remove, and edit products from the administration interface:


The orders listing page lists all orders placed in the store and allowyou to view orders and modify their statuses:


A screenshot of the Order Information page listing the order information and providing options to change their status is shown as follows:


What just happened?
The store administration UI is now ready, and our next step is to set up PayPal Express checkout and to integrate it with our store, which will enable our user to make payments using PayPal. Before we move on to the next section,the following section gives you a simple task to try out.

Now thayou know hoto integrate search into a Zend Framework 2.0 application, trto add free text search functionality for the Manage Products section of our store application.

Không có nhận xét nào:

Đăng nhận xét