Commerce Server General - Is Basket.Load and Basket.Add the same?? CHANGE EXISTING ORDERS

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2006 > Is Basket.Load and Basket.Add the same?? CHANGE EXISTING ORDERS





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 Is Basket.Load and Basket.Add the same?? CHANGE EXISTING ORDERS
Jeremy

2006-03-01, 5:52 pm

Please help, i keep seeing Basket.Load but cannot find it. I want to update
existing orders but i DO NOT want to overwrite one's existing cart if they
have one. How do i do this. I want to update shipping and billing address,
cc info and line items qty.

PLEASE HELP
Ravi Shankar

2006-03-03, 6:18 pm

Hi Jeremy,

Basket.Load is to create an instance of the user's basket based on what is
stored in the Database. Basket.Add on the other hand is used to add the
contents of a OrderTemplate or PurchaseOrder into the existing user basket.

If you're using Retail2002 site then you'll be able to locate the
Basket.Load call in the TransactionContext Class otherwise Basket.Load can
be found in the documentation at
http://msdn.microsoft.com/library/?....asp?frame=true

If you do not want to override the existing cart then you should create an
OrderTemplate, move the contents of the cart into that OrderTemplate, Save
it. Clear the basket, load the PO, make modifications, save the PO, clear the
cart, load the OrderTemaplate, save the basket & delete the OrderTemplate
Simple Huh ?
--
Ravi Shankar


"Jeremy" wrote:

> Please help, i keep seeing Basket.Load but cannot find it. I want to update
> existing orders but i DO NOT want to overwrite one's existing cart if they
> have one. How do i do this. I want to update shipping and billing address,
> cc info and line items qty.
>
> PLEASE HELP

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com