09-21-05 10:52 PM
Hello Ripos,
When you execute a SaveAsOrder the returning value is a PurchaseOrder object
.
That is where you should be pulling values from after executing that method.
You can access all of the fields at the Order Group or Order Form level
through that object. The PurchaseOrder object is essentially a dictionary
object so all fields, like in the basket and order form objects, are accessi
ble
with keys (e.g. Receipt["saved_cy_total_total"])
If you want to persist your own fields in the database outside of the marsha
led
data contents you need to create a column in the table with the same key
name. For example we have added several fields to the database:
saved_cy_oadjust_subtotal
saved_cy_orderlevel_discounts_subtotal
saved_cy_shipping_total
etc..
Hope that helps.
Colin
> In the Cart class we define our own scheme of calculating SubTotal
> field
> .
> That's OK for showing it in the ShoppingCart, but when we use
> SaveAsOrder(), then
> original field is saved.
> All instances of this field is read-only and the class Basket is
> sealed
> in
> the assembly.
>
> How can we save our own SubTotal field to the order?
>
> We use CS2002+FP1+SP3+Starter site
>
[ Post a follow-up to this message ]
|