Testing your new widget in the Aurora starter store
In this lesson, you verify that your new widget can be used on the Shopping Cart page for your store.
About this task
Procedure
- Open your development environment, in the Enterprise Explorer view.
- Go to Stores\WebContent\AuroraStorefrontAssetStore\ShoppingArea\ShopcartSection
- Open the file OrderItemDisplay.jsp for editing
-
Locate the following code:
Change the code to the following line:<c:import url="/${sdb.jspStoreDir}/ShoppingArea/ShopcartSection/ShopCartDisplay.jsp"/>
Now, the OrderItemDisplay.jsp file calls the widget that you created.<c:import url="/Widgets-MyCompany/com.mycompany.commerce.store.widgets.ShoppingCartDetail/ShoppingCartDetail.jsp"/>
- Save and close the file.
- Start or restart the WebSphere Commerce Test Server.
-
Open the Aurora starter store in a web browser. Add a product to your Shopping
Cart, and go to your cart to view the Shopping Cart page. Your
Shopping Cart page can resemble the following image.