OPP for Receiving Purchase Orders
The Order Processing pipeline (OPP) that enables the Web site to receive orders through BizTalk Server.
Product Info Stage
The components in this stage enter product information for each line item. If the line item is unknown, the item will be marked 'delete=1'.
The components included in this stage are shown in the following table.
Component | Description |
---|---|
Scriptor: Fixup product_variant_id | This component can be removed from the pipeline, it has no functionality. |
QueryCatalogInfo | Ensures that the items submitted via BizTalk Server are in the recipient's catalog. Executes a database query for each line item in the OrderForm object. If data is not found for the line item, the item is marked for deletion. |
RequiredProdInfo | Goes through each item on the order form and deletes any line items marked for deletion. If there are any deletions, a "_Basket_Error to MessageManager(pur_badsku)" error message is returned. |
Order Initialization Stage
This stage sets the initial order information on the OrderForm object and verifies that the OrderForm object contains an order ID.
Order Check Stage
This stage verifies that the order can be processed.
The component included in this stage is shown in the following table.
Component | Description |
---|---|
RequiredOrderCheck | Ensures that the OrderForm object contains at least one line item. |
Item Price Stage
This stage ensures that the _cy
_iadjust
_currentprice
key for each item contains the most current price information.
The components included in this stage are shown in the following table.
Component | Description |
---|---|
DefaultItemPriceCy | Initializes the _cy _iadjust _regularprice key for each line item to store the most current price. |
RequiredItemPriceCy | Ensures that the _cy _iadjust _regularprice key for each line item is set. |
Item Adjust Price Stage
This stage ensures that the _cy
_oadjust
_currentprice
key for each item contains the most current price adjusted for discounts.
The component included in this stage is shown in the following table.
Component | Description |
---|---|
RequiredItemAdjustPriceCy | Ensures that the current price for each item in the order is set and that the price has not been changed. |
Order Adjust Price Stage
This stage decrements the _n
_unadjusted
key, which is initialized to 'quantity' by the RequiredOrderInit component as line item units participate in discounts. You must set the _cy_oadjust_subtotal
key to the price of the items adjusted.
The components included in this stage are shown in the following table.
Component | Description |
---|---|
Scriptor: Use Submitted Prices | Accepts the price submitted in the XML as the price for the product. This component should be replaced with logic that will validate that the submitted prices are correct. |
RequiredOrderAdjustPriceCy | Adjusts the total cost of each item in an order after applying any discounts. |
Order Subtotal Stage
This stage calculates the subtotal for an order.
The components included in this stage are shown in the following table.
Component | Description |
---|---|
DefaultOrderSubTotalCy | Calculates the subtotal for the order. |
RequiredOrderSubTotalCy | Ensures that the subtotal of all items in the item list of an order exist so that the order totals are properly calculated. |
Order Total Stage
This stage sums the subtotal, tax, shipping, and handling values.
The components included in this stage are shown in the following table.
Component | Description |
---|---|
Scriptor: My Total | Placeholder component. This component should be replaced on an as needed basis. Currently, it accepts the BizTalk Server XML order, sets the shipping, handling and tax charges to zero, and sets the order total. |
RequiredTotalCy | Performs a _VERIFY_WITH check on the OrderForm object. |
Accept Stage
This stage can be used to initiate order tracking, generate purchase orders, and save the order.
See Also
About the BizTalk Server Integration Feature
Copyright © 2005 Microsoft Corporation.
All rights reserved.