Commerce Server General - OrderForm.Total is equal to 0 after running the total pipeline

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > July 2005 > OrderForm.Total is equal to 0 after running the total pipeline





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author OrderForm.Total is equal to 0 after running the total pipeline
gwheeloc

2005-07-12, 2:48 am

After running the Basket pipeline and the Total pipeline in the same
function, I'm trying to display the OrderForm.Total value. Each time
it holds a value of 0. If I display a dump of the orderform dictionary
object via (DumpUtils.DumpDictionary(l_oBasket.OrderForms[0].Dictionary
, new HtmlTextWriter(Response.Output), "OrderForm: " +
l_oBasket.OrderForms[0].Name);)
I can see that the _cy_total_total value does hold the value of the
order's total. Is there a sequence or something specific that needs to
be done to get the value to populate the OrderForm.Total property?

Thanks for the help.
GW

Here is the bottom portion of the dictionary dump:

BasketOrderGroupID=<System.String>
"{F12E151E-B739-480E-9BC2-76F292487735}"
_cy_total_total=<System.Decimal> 859.16
_cy_shipping_discounts_total=<System.Decimal> 0
changeditems=<System.Boolean> True
total_lineitems=<System.Int32> 1
_cy_handling_total=<System.Decimal> 0
_tax_total=<System.Int32> 0


Here is a dump of the Total pipeline if it will help.

Sink started at 2005/07/11 22:57:27.0129
PIPELINE:++ 2005/07/11 22:57:27.0129 Pipeline Execution starts
(lMode==0x1, lFlags==0x0)
10 components in the list
PIPELINE:++ component[0x0] about to be called ProgID:
Commerce.Splitter.1
RootObject: ReadValue items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
Items: ReadItem 0 VT_DISPATCH PV=[0xdcf2ab8] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
: ReadValue shipping_address_id VT_BSTR
8f7b4c1e-72bc-4ec1-876e-09d0c00c45fe VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
: ReadValue shipping_address_id VT_BSTR
8f7b4c1e-72bc-4ec1-876e-09d0c00c45fe VT_EMPTY __empty__
RootObject: WriteValue shipments VT_EMPT
Y __empty__ VT_DISPATCH PV=[0xdd0a610]
PIPELINE:-- component [0x0] returned hr: 0x0, IErrorLevel=1 in 150
milliseconds
PIPELINE:++ component[0x1] about to be called ProgID:
Commerce.ShippingMethodRouter.1
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue shipments VT_DISPA
TCH PV=[0xdd0a610] VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
shipping_method_name: ReadValue {00000000-0000-0000-0000-006225001526} VT_DISPATCH PV=[0xdd0acb8] VT_EMPTY __empty__
{00000000-0000-0000-0000- 006225001526}: ReadValue progid VT_BSTR
commerce.stepwiseshipping VT_EMPTY __empty__
{00000000-0000-0000-0000- 006225001526}: ReadValue config VT_DISPA
TCH PV=[0xdd0b080] VT_EMPTY __empty__
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
: ReadValue ItemIndexes VT_DISPATCH PV=[0xdd0a590] VT_EMPTY __empty__
config: ReadValue mode VT_I2 2 VT_EMPTY
__empty__
ItemIndexes: ReadItem 0 VT_I4 0 VT_EMPTY
__empty__
Items: ReadItem 0 VT_DISPATCH PV=[0xdcf2ab8] VT_EMPTY __empty__
: ReadValue _product_weight VT_R8 0 VT_E
MPTY __empty__
: ReadValue quantity VT_I4 2 VT_EMPTY __
empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
: WriteValue _cy_shipping_total VT_EMPTY
__empty__ VT_CY 10
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_method_id VT_BSTR {00000000-0000-0000-0000-006225001526} VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue _cy_shipping_total VT_CY 10
VT_EMPTY __empty__
RootObject: WriteValue _cy_shipping_tota
l VT_NULL __null__ VT_CY 10
PIPELINE:-- component [0x1] returned hr: 0x0, IErrorLevel=1 in 51
milliseconds
PIPELINE:++ component[0x2] about to be called ProgID:
Commerce.ShippingDiscountAdjust.1
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue _cy_shipping_total
VT_CY 10 VT_EMPTY __empty__
RootObject: ReadValue shipments VT_DISPA
TCH PV=[0xdd0a610] VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue _cy_shipping_total VT_CY 10
VT_EMPTY __empty__
RootObject: ReadValue _orderlevel_discou
nts_detail VT_NULL __null__ VT_EMPTY __e
mpty__
RootObject: WriteValue _cy_shipping_tota
l VT_CY 10 VT_CY 10
RootObject: WriteValue _cy_shipping_disc
ounts_total VT_EMPTY __empty__ VT_CY 0
PIPELINE:-- component [0x2] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x3] about to be called ProgID:
Commerce.DefaultHandlingCy.1
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: WriteValue _cy_handling_tota
l VT_NULL __null__ VT_CY 0
PIPELINE:-- component [0x3] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x4] about to be called ProgID:
Commerce.RequiredHandlingCy.1
RootObject: ReadValue _currency_compatib
ility VT_NULL __null__ VT_EMPTY __empty_
_
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue _currency_lcid VT_
BSTR 1033 VT_EMPTY __empty__
RootObject: ReadValue _cy_handling_total
VT_CY 0 VT_EMPTY __empty__
RootObject: ReadValue _handling_total VT
_NULL __null__ VT_EMPTY __empty__
RootObject: WriteValue _handling_total V
T_NULL __null__ VT_I4 0
PIPELINE:-- component [0x4] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x5] about to be called ProgID:
Commerce.SampleRegionalTax.1
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
RootObject: ReadValue shipments VT_DISPA
TCH PV=[0xdd0a610] VT_EMPTY __empty__
shipments: ReadItem 0 VT_DISPATCH PV=[0xdd0a750] VT_EMPTY __empty__
: ReadValue shipping_address_id VT_BSTR
8f7b4c1e-72bc-4ec1-876e-09d0c00c45fe VT_EMPTY __empty__
RootObject: ReadValue addresses VT_DISPA
TCH PV=[0xdcf0e08] VT_EMPTY __empty__
Addresses: ReadValue 8f7b4c1e-72bc-4ec1-876e-09d0c00c45fe VT_DISPATCH PV=[0xdcf56f0] VT_EMPTY __empty__
8f7b4c1e-72bc-4ec1-876e- 09d0c00c45fe: ReadValue country_code VT_
BSTR Canada VT_EMPTY __empty__
8f7b4c1e-72bc-4ec1-876e- 09d0c00c45fe: ReadValue region_code VT_B
STR AB VT_EMPTY __empty__
: ReadValue ItemIndexes VT_DISPATCH PV=[0xdd0a590] VT_EMPTY __empty__
ItemIndexes: ReadItem 0 VT_I4 0 VT_EMPTY
__empty__
Items: ReadItem 0 VT_DISPATCH PV=[0xdcf2ab8] VT_EMPTY __empty__
: ReadValue _cy_oadjust_adjustedprice VT
_CY 849.16 VT_EMPTY __empty__
: WriteValue _cy_tax_total VT_EMPTY __em
pty__ VT_CY 0
: WriteValue _cy_tax_included VT_EMPTY _
_empty__ VT_CY 0
: WriteValue _cy_tax_total VT_EMPTY __em
pty__ VT_CY 0
: WriteValue _cy_tax_included VT_EMPTY _
_empty__ VT_CY 0
RootObject: WriteValue _cy_tax_total VT_
NULL __null__ VT_CY 0
RootObject: WriteValue _cy_tax_included
VT_NULL __null__ VT_CY 0
PIPELINE:-- component [0x5] returned hr: 0x0, IErrorLevel=1 in 60
milliseconds
PIPELINE:++ component[0x6] about to be called ProgID:
Commerce.RequiredTaxCy.1
RootObject: ReadValue _currency_compatib
ility VT_NULL __null__ VT_EMPTY __empty_
_
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue _currency_lcid VT_
BSTR 1033 VT_EMPTY __empty__
RootObject: ReadValue _cy_tax_total VT_C
Y 0 VT_EMPTY __empty__
RootObject: ReadValue _tax_total VT_NULL
__null__ VT_EMPTY __empty__
RootObject: WriteValue _tax_total VT_NUL
L __null__ VT_I4 0
RootObject: ReadValue _cy_tax_included V
T_CY 0 VT_EMPTY __empty__
RootObject: ReadValue _tax_included VT_N
ULL __null__ VT_EMPTY __empty__
RootObject: WriteValue _tax_included VT_
NULL __null__ VT_I4 0
RootObject: ReadValue Items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
: ReadValue _cy_tax_total VT_CY 0 VT_EMP
TY __empty__
: ReadValue _tax_total VT_NULL __null__
VT_EMPTY __empty__
: WriteValue _tax_total VT_EMPTY __empty
__ VT_I4 0
: ReadValue _cy_tax_included VT_CY 0 VT_
EMPTY __empty__
: ReadValue _tax_included VT_NULL __null
__ VT_EMPTY __empty__
: WriteValue _tax_included VT_EMPTY __em
pty__ VT_I4 0
PIPELINE:-- component [0x6] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x7] about to be called ProgID:
Commerce.DefaultTotalCy.1
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue _cy_oadjust_subtot
al VT_CY 849.16 VT_EMPTY __empty__
RootObject: ReadValue _cy_shipping_total
VT_CY 10 VT_EMPTY __empty__
RootObject: ReadValue _cy_tax_total VT_C
Y 0 VT_EMPTY __empty__
RootObject: ReadValue _cy_handling_total
VT_CY 0 VT_EMPTY __empty__
RootObject: WriteValue _cy_total_total V
T_NULL __null__ VT_CY 859.16
PIPELINE:-- component [0x7] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x8] about to be called ProgID:
Commerce.RequiredTotalCy.1
RootObject: ReadValue _currency_compatib
ility VT_NULL __null__ VT_EMPTY __empty_
_
RootObject: ReadValue _currency_decimal_
places VT_BSTR 2 VT_EMPTY __empty__
RootObject: ReadValue _currency_lcid VT_
BSTR 1033 VT_EMPTY __empty__
RootObject: ReadValue _cy_total_total VT
_CY 859.16 VT_EMPTY __empty__
RootObject: ReadValue _total_total VT_NU
LL __null__ VT_EMPTY __empty__
RootObject: WriteValue _total_total VT_N
ULL __null__ VT_I4 85916
RootObject: ReadValue _Verify_With VT_DI
SPATCH PV=[0xdcf27a8] VT_EMPTY __empty__
PIPELINE:-- component [0x8] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds
PIPELINE:++ component[0x9] about to be called ProgID:
Commerce.Scriptor.1
RootObject: ReadValue items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
: ReadValue _cy_iadjust_regularprice VT_
CY 424.58 VT_EMPTY __empty__
: WriteValue cy_unit_price VT_EMPTY __em
pty__ VT_CY 424.58
: ReadValue _cy_oadjust_adjustedprice VT
_CY 849.16 VT_EMPTY __empty__
: WriteValue cy_lineitem_total VT_EMPTY
__empty__ VT_CY 849.16
: ReadValue _product_description VT_NULL
__null__ VT_EMPTY __empty__
: WriteValue description VT_EMPTY __empt
y__ VT_NULL __null__
: ReadValue _product_name VT_NULL __null
__ VT_EMPTY __empty__
: WriteValue saved_product_name VT_EMPTY
__empty__ VT_NULL __null__
RootObject: ReadValue _cy_oadjust_subtot
al VT_CY 849.16 VT_EMPTY __empty__
RootObject: WriteValue saved_cy_oadjust_
subtotal VT_EMPTY __empty__ VT_CY 849.16
RootObject: ReadValue _cy_total_total VT
_CY 859.16 VT_EMPTY __empty__
RootObject: WriteValue saved_cy_total_to
tal VT_EMPTY __empty__ VT_CY 859.16
RootObject: ReadValue items VT_DISPATCH
PV=[0xdcf2998] VT_EMPTY __empty__
: ReadValue _itemlevel_discounts_applied
VT_NULL __null__ VT_EMPTY __empty__
: ReadValue _cy_itemlevel_discounts_subt
otal VT_NULL __null__ VT_EMPTY __empty__

: WriteValue saved_cy_itemlevel_discount
s_subtotal VT_EMPTY __empty__ VT_NULL __
null__
: ReadValue _orderlevel_discounts_applie
d VT_NULL __null__ VT_EMPTY __empty__
: ReadValue _cy_orderlevel_discounts_sub
total VT_NULL __null__ VT_EMPTY __empty_
_
: WriteValue saved_cy_orderlevel_discoun
ts_subtotal VT_EMPTY __empty__ VT_NULL _
_null__
RootObject: ReadValue _shipping_discount
_description VT_NULL __null__ VT_EMPTY _
_empty__
RootObject: WriteValue saved_shipping_di
scount_description VT_EMPTY __empty__ VT
_NULL __null__
RootObject: ReadValue shipments VT_DISPA
TCH PV=[0xdd0a610] VT_EMPTY __empty__
RootObject: ReadValue shipments VT_DISPA
TCH PV=[0xdd0a610] VT_EMPTY __empty__
: ReadValue _shipping_discounts_applied
VT_NULL __null__ VT_EMPTY __empty__
: ReadValue _cy_shipping_discounts_subto
tal VT_NULL __null__ VT_EMPTY __empty__
: WriteValue saved_cy_shipping_discounts
_subtotal VT_EMPTY __empty__ VT_NULL __n
ull__
RootObject: ReadValue _shipping_discount
s_applied VT_NULL __null__ VT_EMPTY __em
pty__
RootObject: ReadValue _cy_shipping_disco
unts_total VT_CY 0 VT_EMPTY __empty__
RootObject: WriteValue saved_cy_shipping
_discounts_total VT_EMPTY __empty__ VT_C
Y 0
RootObject: ReadValue user_id VT_BSTR f1
2e151e-b739-480e-9bc2-76f292487735 VT_EMPTY __empty__
PIPELINE:-- component [0x9] returned hr: 0x0, IErrorLevel=1 in 80
milliseconds
PIPELINE:-- 2005/07/11 22:57:27.0480 Pipeline Execution completed
returning hr: 0x0
i: 0xA
hrLoop: 0x0
*plErrorLevel: 1

Sink stopped at 2005/07/11 22:57:27.0480

gwheeloc

2005-07-12, 2:48 am

Please disregard this post. The problem was due to developer error.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com