Customizing WebSphere Commerce
You can extend the WebSphere Commerce product to fit your business needs. This topic describes the prerequisite skills and required knowledge that you need to customize business logic. After you have the required knowledge, use WebSphere Commerce Developer to take tutorials that guide you step-by-step through various customization scenarios.
What you need to know before you start
WebSphere Commerce is a Java and Java EE compliant
application. To successfully customize WebSphere Commerce you need skills and knowledge in the
following areas:
- Basic Java and Java EE application development skills
- Basic JavaServer Pages (JSP) development and deployment skills
- Basic Java servlet development and deployment skills
- Basic JavaServer Pages Standard Tag Library (JSTL) skills
- Basic HTML skills
- Basic SQL skills
- Basic XML skills
- Familiarity with developing and deploying Java servlets and JavaServer Pages in dynamic Web applications
- Basic understanding of Rational Application Developer
Before you begin to customize WebSphere Commerce, understand the following, and read the
following topics.
- All files should be encoded in
UTF-8
.
Required knowledge | See |
---|---|
Understand the main components and capabilities of the WebSphere Commerce development environment. | |
Understand the WebSphere Commerce architecture including the information model, data model, and programming model. | |
Understand how the WebSphere Commerce development environment interacts with the Web server, Database server and WebSphere Application Server. | |
Understand the major components of WebSphere Commerce and how they interact. | |
Understand how the data model, presentation information, and control information are separated into different objects. | |
Understand the programming frameworks used by WebSphere Commerce and when to use each model. | |
Understand the relationship of the business context service to business logic. | |
Understand features of developing Enterprise JavaBeans. | |
Understand the main features of developing commands. |
Tutorials, samples and procedures
When you have the required skills and knowledge, the following instructions are available to you:
Tutorial | Learning objectives | Description |
---|---|---|
Tutorial: Creating business logic | After completed this tutorial, you should be
familiar with the following concepts:
After completing this tutorial,
you should be familiar with the following tasks:
|
In this tutorial, you create the business logic for a new view, controller command, data bean, and entity bean. New business logic is required when a change is made to the default business logic behavior of WebSphere Commerce. This tutorial guides you through creating business logic to support an application to track bonus reward points earned by customers in a new customer loyalty program application. The assets you will create include a view, a controller command, a task command, data beans, and an entity bean. This tutorial is for demonstration purposes only and does not reflect all the logic required to build a fully functional loyalty program application. From this tutorial, you learn the common development steps for creating the previously listed code assets. |
Tutorial: Modifying a controller command | After completed this tutorial, you should be
familiar with the following concepts:
After completing this tutorial,
you should be familiar with the following tasks:
|
This tutorial demonstrates how to modify an existing controller command. In this tutorial, you restrict the number of items in a customer's shopping cart to five or fewer unique items. To implement this solution, you override the OrderItemAddCmdImpl class with your own implementation. The implementation includes logic to check for the number of items in the shopping cart. If a customer attempts to add a sixth item to the shopping cart, an exception is thrown. This exception uses a new error message. |
Tutorial: Using Struts tags, action forms, and validation | After completing this tutorial, you should
be familiar with the following concepts:
After completing this tutorial,
you should be familiar with the following tasks:
|
In this tutorial, you learn how to use Struts tags, action forms, and validation in the context of WebSphere Commerce store development. |
Tutorial: Extending a Struts action | After completing this tutorial, you should
be familiar with the following concepts:
After completing this tutorial,
you should be familiar with the following tasks:
|
In this tutorial, you learn how to extend Struts actions in the context of WebSphere Commerce store development. Specifically, you are creating a new action class, MyNewAction, that extends the WebSphere Commerce BaseAction class. |
Tutorial: Extending a BOD service to manage UserData with the Data Service layer | After completing this tutorial, you should
be familiar with the following concepts:
After completing this tutorial,
you should be able to perform the following tasks:
|
In this tutorial, you customize the Catalog service to support warranty information and care instructions for Catalog Entries. This customization updates the WebSphere Commerce schema so that it stores the new information and customizes the Catalog service to include new information. The new information is included as user data in the CatalogEntry noun. |
Tutorial: Extending a search profile to retrieve and display custom data in the storefront | After completing this tutorial, you should
be familiar with the following concepts:
After completing this tutorial,
you should be familiar with the following tasks:
|
In this tutorial, you learn how to create catalog data and display this data in the storefront by using the search-based catalog navigation noun. |
Tutorial: Displaying additional UserData in mobile native applications | After completing this tutorial, you should be familiar with the following concepts:
|
In this tutorial, you learn how to display custom UserData in a mobile native application via REST services. |
Best practices
- User interface extensions
- Application tier extensions
- API extensions best practices
- SOI services
- SOA services
- REST services
- Admin services
- Integration
- Extensions to messaging subsystem
- Component customization
- Cache enablement for extensions store pages
- Search extensions
- Database extensions