Commerce Server General - Re: Pipeline problem with diferent pricing for different customer

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2005 > Re: Pipeline problem with diferent pricing for different customer





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: Pipeline problem with diferent pricing for different customer
bobby

2005-03-24, 5:50 pm

Here is my order dump I can pass the variable through item too but I dont
know how to use it in my pipeline:
Key [SKU] {String} Value [531] {String}
Key [Quantity] {String} Value [1] {Long}
Key [name] {String} Value [Charming Handcrafted.925 Silver 8ct Moonstone
Necklace ] {String}
Key [list_price] {String} Value [900] {Long}
Key [dept_id] {String} Value [37] {Long}
Key [shopper_type] {String} Value [1] {Integer}
Key [pf_id] {String} Value [531] {String}
Key [placed_price] {String} Value [900] {Long}
Key [_product_pf_id] {String} Value [531] {String}
Key [_product_name] {String} Value [Charming Handcrafted.925 Silver 8ct
Moonstone Necklace ] {String}
Key [_product_list_price] {String} Value [900] {Long}
Key [_product_sale_price] {String} Value [0] {Long}
Key [_product_sale_start] {String} Value [1/1/2001] {Date}
Key [_product_sale_end] {String} Value [1/1/2001] {Date}
Key [_product_sku] {String} Value [531] {String}
Key [_product_dept_id] {String} Value [37] {Long}
Key [_n_unadjusted] {String} Value [1] {Long}
Key [_oadjust_adjustedprice] {String} Value [900] {Long}
Key [_iadjust_regularprice] {String} Value [900] {Long}
Key [_iadjust_currentprice] {String} Value [900] {Long}
Key [_oadjust_discount] {String} Value [0] {Long}

"Ravi" wrote:

> Bobby,
> Are you using asp or asp.net ?
> In asp.net this is how i set a custom value in the order form :
>
> txContext.CartOrderForm.Item("GIFT_MESSAGE") = txtGiftMessage.Text.Trim
>
> where CartOrderform is the object that gets created when you add item
> to the basket. The pipeline receives this object and reads the value.
> In your code you have mentioned
> Set Orderform = Server.CreateObject("Commerce.Â_Dictionary")
> Orderform.[shopper_type] = "1"
> Is this the object (Orderform) that you are passing in the Pipeline ?
> If you are using asp, then there must be some place where the orderform
> object gets created and there the values will be set. I think it is
> mscsOrderForm. You have to look for this object and add your custom key
> (shopper_type) and value (1). If you cannot figure it out, send me the
> code and i will let you know what object you should use. Or you can
> search for 'mscsOrderForm' in Utils.asp.
>
> Hope this helps,
>
> Regards
>
> Ravi
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com