You can create a custom cartridge to modify existing Business Manager pages and add new ones.
The following four parts of the Business Manager user interface can be extended.
Each of the four types of extensions provides a different way to hook custom functionality into Business Manager. Because standard Business Manager menus use menu items and menu actions to access business functionality, Business Manager Extensions provided by merchants seamlessly integrate with existing menus.
Business Manager extensions are defined in XML files that are read during server startup. These XML files are placed in cartridges that implement the portions of Business Manager. A B2C Commerce server without customization has only one XML file located in the app_business_manager cartridge. This file contains all the menu items and menu actions you can see in an unaltered Business Manager.
The Business Manager extensions framework takes the list of cartridges
assigned to Sites
to collect all XML files from which to load Business Manager
extensions. All Business Manager extensions read from the XML files are merged into a table. The
table contains the Business Manager extensions that are applicable for the current
organization.
You can customize certain Business Manager functionality by creating a custom cartridge and
modifying specific ISML templates in it. These templates, which override standard Business
Manager templates, exist in folders under /cartridge/templates/default
. You
can only customize the Business Manager templates listed here.
Folder | Customizable Templates |
---|---|
/cartridge/templates/default/application |
|
/cartridge/templates/default/custom |
|
/cartridge/templates/default/marketing |
|
/cartridge/templates/default/order |
|
/cartridge/templates/default/user |
|
For example, a merchant conducts business in a region that uses VAT (Value-Added Tax), and
wants to print legally valid VAT invoices from the Order page. The output of the standard
invoice print function does not qualify. To implement this functionality, customize the
/cartridge/templates/default/order/printorderinvoice.isml
template to add
the required information to the output of the Print Invoice
button.
*bm_extensions.xml_
in
directory /<cartridge_name>/cartridge
of your custom
cartridge.To add a menu item, for example, Merchants Custom Menu Item:
<extensions>
tag to your bm_extensions.xml
file:
/<cartridge_name>/cartridge/static/default/<my-image-directory>
.
If you want different images for different languages, make sure to have a separate
directory for each language. Use the ISO locale of the language as the directory
name.Menu actions are the bridge between the navigation (menu item) and the business functionality. To link the navigation (menu item) with the business logic:
<extensions>
tag to your bm_extensions.xml
file:
Dialog actions hook into existing Business Manager page. The dialog action can open a popup or navigate to a subpage.
bm_extensions.xml
file:
bm_extension.xml
file.xp_ref
attribute
to the XML.bm_extensions.xml
.
string
, int
, double
.x-default
locale. Add more <
label...
elements to localize for other languages.name
map to the attributes of the business object to search for. For example, if you extend Order
Search, you can view that business object's attributes by selecting .