Creating static kits within static kits

Advanced Orders In this case, none of the static kits exist before you proceed. If any of the static kits you want to nest already exist, see Adding a static kit to a static kit.

To create static kits within static kits:

  1. Design the structure of your kits. For example, you can design the following structure:
    Click the D link for description.D
  2. Create the structure of the static kits in the database:
    1. Create an XML input file for the loader package to create the structure of the kits. The sample XML file WC_installdir/samples/Orders/wcs.nestedstatickits.xml creates the structure above. View the sample and modify it as required for your data.
    2. Load the data in the XML input file.
      1. Open a command prompt.
      2. Navigate to WC_installdir/bin.
      3. Modify the file to reflect your store's information. See the comments in the file for more information.
      4. Run the following command: massload -dbname dbname -dbuser dbuser -dbpwd dbpassword -infile WC_installdir/samples/Orders/wcs.nestedstatickits.xml -method sqlimport
        where dbname is the name of your database, dbuser is the name of your database user, and dbpassword is the database user's password.

    Once you successfully complete steps 1 and 2, the you can see the kits within WebSphere Commerce Accelerator. The kits do not yet contain SKUs nor prices. The remaining steps add SKUs and prices to the kits. The steps are the same steps as for prebuilt kits, and are performed within WebSphere Commerce Accelerator.

  3. Open the WebSphere Commerce Accelerator.
  4. Find the kits you created in the previous step. If you check the box to the left of a kit, the kits and SKUs directly within the kit display. Continuing the example, if you check the box to the left of static kit 1, static kit 2 displays because it is contained directly within static kit 1, that is, static kit 1 is static kit 2's immediate parent. Static kits 3, 4, 5, and 6 will not display static kit 1 is not their immediate parent. If you check the box next to static kit 4, both static kits 5 and 6 display because static kit 4 is their immediate parent.
  5. Add SKUs to each kit. Continuing the example, you can add SKUs to any of the six kits.
  6. Add prices to each kit.
    1. You must add a price to the top-level kit; this price is the price for the top level kit, including all the kits within the top level kit. Continuing the example, if the price for static kits 1 through 6 combined is $100 U.S. dollars, then assign static kit 1 the price $100 U.S. dollars.
    2. You can add prices to the non-top-level kits if you plan to sell them separately. For example you can sell only static kit 2. Selling only static kit 2 means selling only the catalog entries directly assigned to static kit 2, and not including catalog entries in static kits 3 through 6. The top-level kit, static kit 1 in the example, cannot be sold by itself, that is, without static kits 2 through 6.

Feedback