Develop > Controller layer > Application developer > Business relationship assets


Create a default contract asset

The default contract defines the default behavior of a store. As with all contracts, you can set the available products, prices, payment methods, shipping methods, and other store behavior.

The store default contracts provided with the WebSphere Commerce starter stores contain terms and conditions that specify the following conditions:

Also, the most general version of a store's default contract omits terms and conditions that restrict the payment and shipping methods that buyers can use. Omitting these terms allows buyers to pay for purchases using any of the default payment methods supported by the store and use any shipping method available in the store.

The default contract's properties are defined in its terms and conditions. Some of the terms and conditions reference business policies.


Procedure

  1. Review information about terms and conditions, contracts, default contracts, and business policies.

  2. Review the business policies defined in the wcs.bootstrap.xml file.

  3. Review the files used to create default contract assets for the starter stores. All starter stores files are located in the corresponding store archive file. Each starter store includes a businesspolicy.xml and contract.xml, which includes additional business policy information and default contract information. The store archive files are located in the WC_EAR/starterstores directory. Notes:

    1. To view the businesspolicy.xml and contract.xml files in the store archive, extract them using a ZIP program. The files are located in the data directory.

    2. The contract asset files for the Advanced B2B direct starter store includes information for contracts other than the store default contract.

  4. Create a businesspolicy.xml file by copying one of the businesspolicy.xml files in the starter store archives, or by creating a new file.

    To create different business policies from the ones discussed, see the DTD file that corresponds to businesspolicy.xml. The DTD files are located in the WC_EAR/xml/sar directory.

  5. Load the businesspolicy.xml file using the loading utilities. If you are creating a multicultural store, you may want to create separate XML files for each locale the store supports. The locale-specific file should specify all description information, so it can be translated.

  6. Create a contract.xml file by copying one of the contract.xml files in the starter store archives, or by creating a new file. Instructions for creating a new file are in .

    To create a more complex default contract, review the B2BTrading.dtd or Package.xsd file which defines the structure of a contract file. The B2BTrading.dtd file is located in the WC_EAR/xml/trading/dtd directory; the Package.xsd file is located in the WC_EAR/xml/trading/xsd directory.

  7. Publish the contract using the ContractImportApprovedVersion command.


Results

Users can define contracts for specific customers using the WebSphere Commerce Accelerator.


+

Search Tips   |   Advanced Search