Creating a JavaScript file for adding selected products into shopping cart
In this lesson, you implement the function to add a product into a shopping cart for a recipe.
About this task
Procedure
- Create RecipeDisplay.js.
- In the Enterprise Explorer view, expand
- Right-click the javascript folder and select
- In the Folder name field, enter Recipe
- Right-click the Recipe folder and select Import. Expand .
- Click Browse and navigate to TutorialSource\RecipeTool\Stores\WebContent\Aurora\javascript\Recipe, where TutorialSource is the location where you extracted the Tutorial sample source code. Select the RecipeDisplay.js file. ; then click
- Modify RecipeDisplay.jsp to use RecipeDisplay.js