Anchor Engine

 

This engine is deprecated. Use the Attribute-based engine instead.

Anchor Engine calculates a price for a given product based on another product’s price (Anchor) and anchor factor by which we multiply this price. The formula is: Price = AnchorPrice * (1 + AnchorFactor)

This engine supports only one level of connection. It means you cannot specify an anchor for an anchor, etc. In addition – this engine works properly only when all connected products are added to the same Price List or Live Price Grid.

Important notes:

  • This engine uses the re-run (“marked as dirty”) functionality of Pricefx. It means that you should not mix products that are used by other engines that mark items as dirty (e.g. Kit Engine) in one PL/LPG. It can lead to undefined behavior and wrong results.

  • Because this engine doesn’t return a price after the first calculation, if it is used as Base Strategy, it will not be shown in the “Prices” popup. The strategy will appear only when the second calculation run completes.

  • If the used Price List or Live Price Grid are of the Matrix type, the engine assumes that the secondary key is used for storing the volume information and will search for an anchor product with the secondary key equaling to 1.

Input Parameters

Input

Type

Description

Input

Type

Description

SKU

String

SKU of the calculated product.

Final List Price Element Name

String

Name of the element that keeps the Final List Price. It will be used for the Anchor price lookup if the calculation is in the Net mode.

Final Price Element Name

String

Name of the element that has the Final Price. It will be used for Anchor price lookup if the Final List Price element is empty. It usually happens during Gross calculation.


Additional Engine Configuration

This engine needs an additional simple configuration Price Parameter where all Configuration Options are present as keys.

Configuration Option

Expected value

Description

Configuration Option

Expected value

Description

Source Type

Allowed values:

  • PX

  • PP

  • P

  • PXREF

Defines where the anchor data is kept.

Source Table

ExampleTableName

Name of the data table. Expected only when PX or PP Source Type is used.

Anchor Label

ExampleAnchorColumn

Name of the column that contains SKU of the anchor product.

Factor to Anchor Field Label

ExampleFactorColumn

Name of the column that contains the value used as factor multiplication.

Sku Field Label

ExampleSkuColumn

Name of the column that contains SKU of a currently calculated product.


Default Strategy Calculation Parameters

SKU,FINAL_LIST_PRICE_ELEMENT_NAME,FINAL_PRICE_ELEMENT_NAME