Commerce Server General - Modify Existing Order

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2005 > Modify Existing Order





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 Modify Existing Order
Ugur KARATAS

2005-05-09, 7:47 am

I want to modify a existing order on Commerce Server 2002 for requirement
BackOffice operations of our client.

When i try to access customer orders form with OrderGroupSearch (BCL) i just
get .Net DataSet. This helps me only listing customer orders, not for
modify.

OrderGroupManager (PIA) and OrderGroup (PIA) don't created any sense for
aiming to modify existing order (OrderGroup).

The first question is it is posible to modify order (adding new item,
updading quantities, removing items etc.) with PIA or BCL libraries, if yes
where can i find code block ?

I am thinking updating Order line items directly on DataBase for another
solution. It is looking so easy when compared to fighting with PIA
libraries.

But this solutions creates another question : How can i run pipeline for
calculating new totals on existing modified order ?



Ravi Shankar

2005-05-09, 5:50 pm

Hi Ugur,

The way we handled order modification is to use the basket.Load(purchase
order) call. This requires the Order_id which you'd get from the "recordset"
as a result of your find/search. If you want to load it in the ordering
customers context then you'd initialize the basket using the user_id (which
again you'd get as one of the parameters from the order group search object).

Once it is in the basket, you can add/modify items/quantities re-execute
pipelines and save it again as an order. We normally cancell the previous
order (changing the order_status from 4 to whatever..) immediately after a
successfull load into the basket.

Making changes directly into the underlying DB is generally not recomended
or supported even.

"Ugur KARATAS" wrote:

> I want to modify a existing order on Commerce Server 2002 for requirement
> BackOffice operations of our client.
>
> When i try to access customer orders form with OrderGroupSearch (BCL) i just
> get .Net DataSet. This helps me only listing customer orders, not for
> modify.
>
> OrderGroupManager (PIA) and OrderGroup (PIA) don't created any sense for
> aiming to modify existing order (OrderGroup).
>
> The first question is it is posible to modify order (adding new item,
> updading quantities, removing items etc.) with PIA or BCL libraries, if yes
> where can i find code block ?
>
> I am thinking updating Order line items directly on DataBase for another
> solution. It is looking so easy when compared to fighting with PIA
> libraries.
>
> But this solutions creates another question : How can i run pipeline for
> calculating new totals on existing modified order ?
>
>
>
>

Ugur KARATAS

2005-05-10, 7:48 am

Thanks Ravi,

That is great redirection to create the solution.




"Ravi Shankar" <shankycheil@newsgroup.nospam> wrote in message
news:89DC92E0-E3E0-4023-AFEB-8B7DE55F1735@microsoft.com...[vbcol=seagreen]
> Hi Ugur,
>
> The way we handled order modification is to use the basket.Load(purchase
> order) call. This requires the Order_id which you'd get from the
> "recordset"
> as a result of your find/search. If you want to load it in the ordering
> customers context then you'd initialize the basket using the user_id
> (which
> again you'd get as one of the parameters from the order group search
> object).
>
> Once it is in the basket, you can add/modify items/quantities re-execute
> pipelines and save it again as an order. We normally cancell the previous
> order (changing the order_status from 4 to whatever..) immediately after a
> successfull load into the basket.
>
> Making changes directly into the underlying DB is generally not recomended
> or supported even.
>
> "Ugur KARATAS" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com