Commerce Server General - Saving a OrderForm as Order

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > August 2004 > Saving a OrderForm as 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 Saving a OrderForm as Order
Vincent van der Laan

2004-08-17, 7:51 am

Hi,

i am using 1 Commerce Server installation for several
shops.
So a user for shop A is also a user for shop B.

For the basket i have the idea of saving the products of
different sites in different orderforms so for shop A the
order will be in basket.OrderForms["ShopA"] etc.

Now I am having the problem that i cannot make 1
orderform as a order. I cannot make the whole basket as a
Order while there can be products from other shops in his
basket.

What am i doing wrong or am i missing something?

Hope you can help.

Vincent van der Laan
Citee
Netherlands
Nihit Kaul [MSFT]

2004-08-18, 5:52 pm

Hi Vincent,

The Order placed is always based on the whole Basket (all orderforms)
included. You can then send it to different vendors for shipping as a
post-processing step.

In this case however, since it seems like you want different Orders for
different Shops, you can leverage the OrderTemplate functionality. You can
create different OrderTemplates for a user for each shop, so all items for
Shop A will be in the OrderTemplate named say, "Shop A Items".

At the time of checkout, you can simply create a Basket and use the
Add(OrderTemplate) method to add the items in the particular OrderTemplate
you are trying to checkout and proceed.

Hope this helps.

Thanks,

Nihit Kaul[MSFT]
Commerce Server
http://blogs.msdn.com/nihitk

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Content-Class: urn:content-classes:message
From: "Vincent van der Laan" <v.vanderlaan@citee.nl>
Sender: "Vincent van der Laan" <v.vanderlaan@citee.nl>
Subject: Saving a OrderForm as Order
Date: Tue, 17 Aug 2004 02:52:33 -0700
Lines: 22
Message-ID: <095d01c4843f$eb34ab00$3a01280a@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
Thread-Index: AcSEP+syodwvCJOoSbGQMpDhNWkQJQ==
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: tk2msftngxa07.phx.gbl 10.40.1.58
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA0
7.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14545
X-Tomcat-NG: microsoft.public.commerceserver.general

Hi,

i am using 1 Commerce Server installation for several
shops.
So a user for shop A is also a user for shop B.

For the basket i have the idea of saving the products of
different sites in different orderforms so for shop A the
order will be in basket.OrderForms["ShopA"] etc.

Now I am having the problem that i cannot make 1
orderform as a order. I cannot make the whole basket as a
Order while there can be products from other shops in his
basket.

What am i doing wrong or am i missing something?

Hope you can help.

Vincent van der Laan
Citee
Netherlands

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com