For WebSphere Commerce to respect pricing
from Sterling Configurator Visual Modeler
on a dynamic kit, the CONFIG: PRICE LOCKED property must be configured.
About this task
Models, model groups, and option items in a dynamic kit and its associated predefined
dynamic kits can be price-locked in Sterling Configurator Visual Modeler. This sample
procedure demonstrates how to set a price lock on an option item in Sterling Configurator Visual Modeler.
Procedure
-
From the Configurator tab of a dynamic kit in Management Center, click Visual
Modeler.
-
In Models and Groups, select your store.
-
In the store folder for your store, open an existing model or create a model. To open an
existing model, in the Models and Groups section, select the model and then click Edit
Model/OGC/OIG in the top navigation bar.
For example, if you are using the sample data, you can use the
AuroraPC-001 model.
-
To create a price lock with a pricing rule within a model:
-
Go to the Rules tab. The rules tab is where the model is defined.
-
From the inner tab, click Define.
-
Click New.
-
Enter information in the Name and Description
fields. Keep other defaults.
-
Click Save and Edit.
-
In the Conditions section, create a Fragment.
Note: The Fragment button looks like the parenthesis brackets (
)
.
-
A new Fragment editor shows. Complete the fields, similar to this
example:
Note: For the Location1 field, click the ellipse button to the right of the
field and choose the name of the model.
-
Click Save and Return.
-
Create assignment actions for the option item that you want to price lock. Click the assignment
actions arrow to expand the Assignment Actions section.
Note:
- If you set a price lock on a model, all option items in the model inherit the price lock.
- You can set a lock on formula prices, such as propval("UI:Price")*0.5, and fixed prices, such as
5.00.
To price lock the option item, create two rows for the option item in the Assignment
Actions table. The first row sets the price lock on the option item, and the second row sets the
price on the option item. In the first row, specify the following values:
- Set the Property field to CONFIG: PRICE LOCKED.
- Set the Value field to 1.
- Set the Assign To field to the name of the option item.
In the second row, specify the following values:
- Set the Property field to UI: PRICE.
- Set the Value field to the price that you want for the object. Specify a
fixed price, such as 5.00, or a formula price, such as propval("UI:Price")*0.5.
- Set the Assign To field to the name of the option item. Set this value to
the same name as the option item in the first row.
To add a row in the Assignment Actions table, click the Add item
button. The figure shows an example where a price and price lock are set on an option item.
-
Click Save and Return.
-
Click the Attach tab.
-
In Unattached Rules, use the menu to locate the newly created rule.
Click Attach.
-
Click Save All Changes.
-
Save and compile the model.