Content Selection Framework - Re: strange behaviour of _orderlevel_discounts_applied for promo_cod

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > January 2005 > Re: strange behaviour of _orderlevel_discounts_applied for promo_cod





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 Re: strange behaviour of _orderlevel_discounts_applied for promo_cod
Jimut

2005-01-24, 5:50 pm

Hi David,

This is the same discount which is applied for both the line items. I am
sending you the following info, I am still confused why this problem is
happening :

Section from order dump which shows the promo code for the 1st line item
:
Dumping SimpleList '_orderlevel_discounts_applied'
<Commerce.Dictionary>
Dumping Dictionary 'list item 1'
cy_discount_amount=<System.Decimal> 45.55
cy_discount_value=<System.Decimal> 60
discount_type=<System.Int32> 1
discount_basket_display=<System.String>
"CouponDiscount"
promocode_defn_id=<System.Int32> 11
promo_code=<System.String> "2341sdfasf"
discount_name=<System.String> "CouponDiscount"
discount_id=<System.Int32> 1000000001
discount_timestamp=<System.DateTime> 1/21/2005
3:02:24 PM
discount_priority=<System.Int32> 1
expectedArrivalDate=<System.String> "1/24/2005 9:52:25 PM"
_product_cy_list_price=<System.Decimal> 11
returnIndex=<System.String> "1"
_product_Personalizable=<System.String> "No Personalization"
groupIndex=<System.Int32> 1
nickName=<System.String> "Myself"
Sale_Tax=<System.Double> 0
_product_FreeGiftWrapStartDate=<System.DateTime> 12/31/2004
3:16:43 PM
giftWrapFlag=<System.String> "N"
personalizeOptions=<System.String> ""
_product_FreeGiftWrapFlag=<System.String> "N"
personalizedFlag=<System.String> "N"
_product_VariantCode=<System.Int32> 1
freeGiftWrapFlag=<System.String> "N"
_product_Thumbnail Image URL=<System.String>
"http://blrkec34369d/images/24.jpg"
freeGiftWrapEndDate=<System.String> "12/30/2004 3:16:43 PM"
personalizableFlag=<System.String> "N"
_cy_orderlevel_discounts_subtotal=<System.Decimal> 45.55
product_id=<System.String> "Compact"
backOrderFlag=<System.String> "N"
knotsku=<System.String> "117"
_product_Name=<System.String> "Compact"
_product_DetailView=<System.String>
"\\blrkec34369d\images\24.jpg"
Quantity=<System.Int32> 16
personalizeText=<System.String> ""
<Commerce.Dictionary>

Similar Section from order dump though it is showing the amount
discounted, it is not showing the promo code for the 2nd line item :

Dumping SimpleList '_orderlevel_discounts_applied'
<Commerce.Dictionary>
Dumping Dictionary 'list item 1'
cy_discount_amount=<System.Decimal> 14.45
cy_discount_value=<System.Decimal> 60
discount_type=<System.Int32> 1
discount_basket_display=<System.String>
"CouponDiscount"
discount_name=<System.String> "CouponDiscount"
discount_id=<System.Int32> 1000000001
discount_timestamp=<System.DateTime> 1/21/2005
3:02:24 PM
discount_priority=<System.Int32> 1
expectedArrivalDate=<System.String> "1/24/2005 9:53:43 PM"
_product_cy_list_price=<System.Decimal> 7.45
returnIndex=<System.String> "1"
_product_Personalizable=<System.String> "No Personalization"
groupIndex=<System.Int32> 2
nickName=<System.String> "Myself"
Sale_Tax=<System.Double> 0
_product_FreeGiftWrapStartDate=<System.DateTime> 12/30/2004
3:16:15 PM
giftWrapFlag=<System.String> "N"
personalizeOptions=<System.String> ""
_product_FreeGiftWrapFlag=<System.String> "Y"
personalizedFlag=<System.String> "N"
_product_ExpectedArrivalDate=<System.String> "1/15/2005"
_product_VariantCode=<System.Int32> 1
freeGiftWrapFlag=<System.String> "Y"
_product_Thumbnail Image URL=<System.String>
"http://blrkec34369d/images/30.jpg"
_itemlevel_discounts_applied=<Commerce.SimpleList>
The section of the pipeline log you have asked for :

PIPELINE:++ component[0xB] about to be called ProgID:
Commerce.RecordPromoCodes
RootObject: ReadValue promo_code_info VT
_DISPATCH PV=[0x15651010] VT_EMPTY __empty__
RootObject: ReadValue Items VT_DISPATCH
PV=[0x156623c0] VT_EMPTY __empty__
Items: ReadItem 0 VT_DISPATCH PV=[0x156624e8] VT_EMPTY __empty__
: ReadValue _orderlevel_discounts_applie
d VT_DISPATCH PV=[0x1566c878] VT_EMPTY __empty__
_orderlevel_discounts_applied: ReadItem
0 VT_DISPATCH PV=[0x156608d8] VT_EMPTY __empty__
: ReadValue discount_id VT_I4 1000000001
VT_EMPTY __empty__
promo_code_info: ReadItem 0 VT_DISPATCH
PV=[0x156607a8] VT_EMPTY __empty__
: ReadValue promo_code_definition_id VT_
I4 11 VT_EMPTY __empty__
promo_code_info: ReadItem 0 VT_DISPATCH
PV=[0x156607a8] VT_EMPTY __empty__
: ReadValue promo_code VT_BSTR 2341sdfas
f VT_EMPTY __empty__
: ReadValue promo_code_definition_id VT_
I4 11 VT_EMPTY __empty__
: ReadValue dt_promo_code_lookup VT_DATE
1/24/2005 9:54:18
PM VT_EMPTY __empty__
: ReadValue promo_code_reserved VT_BOOL
-1 VT_EMPTY __empty__
: ReadValue promo_code_status VT_I4 0 VT
_EMPTY __empty__
: ReadValue promo_applied VT_BOOL 0 VT_E
MPTY __empty__
: ReadValue promo_code_status VT_I4 0 VT
_EMPTY __empty__
: ReadValue promo_applied VT_BOOL 0 VT_E
MPTY __empty__
: WriteValue promo_applied VT_BOOL 0 VT_
BOOL -1
: WriteValue promo_code VT_EMPTY __empty
__ VT_BSTR 2341sdfasf
: WriteValue promocode_defn_id VT_EMPTY
__empty__ VT_I4 11
: ReadValue _itemlevel_discounts_applied
VT_NULL __null__ VT_EMPTY __empty__
Items: ReadItem 1 VT_DISPATCH PV=[0x15663178] VT_EMPTY __empty__
: ReadValue _orderlevel_discounts_applie
d VT_DISPATCH PV=[0x1566a600] VT_EMPTY __empty__
_orderlevel_discounts_applied: ReadItem
0 VT_DISPATCH PV=[0x15664b58] VT_EMPTY __empty__
: ReadValue discount_id VT_I4 1000000001
VT_EMPTY __empty__
promo_code_info: ReadItem 0 VT_DISPATCH
PV=[0x156607a8] VT_EMPTY __empty__
: ReadValue promo_code_definition_id VT_
I4 11 VT_EMPTY __empty__
promo_code_info: ReadItem 0 VT_DISPATCH
PV=[0x156607a8] VT_EMPTY __empty__
: ReadValue promo_code VT_BSTR 2341sdfas
f VT_EMPTY __empty__
: ReadValue promo_code_definition_id VT_
I4 11 VT_EMPTY __empty__
: ReadValue dt_promo_code_lookup VT_DATE
1/24/2005 9:54:18
PM VT_EMPTY __empty__
: ReadValue promo_code_reserved VT_BOOL
-1 VT_EMPTY __empty__
: ReadValue promo_code_status VT_I4 0 VT
_EMPTY __empty__
: ReadValue promo_applied VT_BOOL -1 VT_EMPTY __empty__
: ReadValue promo_code_status VT_I4 0 VT
_EMPTY __empty__
: ReadValue promo_applied VT_BOOL -1 VT_EMPTY __empty__
: ReadValue _itemlevel_discounts_applied
VT_DISPATCH PV=[0x15668ab8] VT_EMPTY __empty__
_itemlevel_discounts_applied: ReadItem 0
VT_DISPATCH PV=[0x15669840] VT_EMPTY __empty__
: ReadValue discount_id VT_I4 1000000022
VT_EMPTY __empty__
PIPELINE:-- component [0xB] returned hr: 0x0, IErrorLevel=1 in 0
milliseconds


Please help me on this.

Reagrds,
Jimut.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com