|
Home > Archive > Commerce Server General > August 2004 > Items in a basket prior to 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 |
Items in a basket prior to order
|
|
| Ken Brown 2004-08-13, 7:48 am |
| Greetings,
Is there a way, either through the bizdesk or in one of the tables, to see
what a user has in their basket prior to it becoming an order?
TIA,
Ken
| |
| gustavo echeverry 2004-08-13, 7:48 am |
| hi ken
nop, you'll have to do this with code, actually there's a way but you will
need to
read a marshalled field located in the basketgroup table (marshal_data) ....
if you
get how to read it ;)
using .NET you could do something like this (assuming you are already
authenticated)
Microsoft.CommerceServer.Runtime.Orders.Basket canasta = null;
canasta = contexto.OrderSystem.GetBasket(new Guid(contexto.UserID));
if(canasta.OrderForms[0].LineItems.Count > 0){
foreach(LineItem item in canasta.OrderForms[0].LineItems){
// here you can access the properties like:
// item.Quantity
}
}
hope it helps
"Ken Brown" <kbrown@nospamplease.formulaboats.com> wrote in message
news:uG%23uFVTgEHA.380@TK2MSFTNGP10.phx.gbl...
> Greetings,
>
> Is there a way, either through the bizdesk or in one of the tables, to see
> what a user has in their basket prior to it becoming an order?
>
> TIA,
>
> Ken
>
>
| |
| Ken Brown 2004-08-13, 7:48 am |
| Gustavo,
Thanks for the quick response. Do you know if there's an easy (or not
extremely difficult) way to extend the business desk to perform this task?
Ken
"gustavo echeverry" <gecheverry@intergrupo.comNOSPAM> wrote in message
news:uoj1qeTgEHA.1644@tk2msftngp13.phx.gbl...
> hi ken
> nop, you'll have to do this with code, actually there's a way but you will
> need to
> read a marshalled field located in the basketgroup table (marshal_data)
> ....
> if you
> get how to read it ;)
>
> using .NET you could do something like this (assuming you are already
> authenticated)
>
> Microsoft.CommerceServer.Runtime.Orders.Basket canasta = null;
> canasta = contexto.OrderSystem.GetBasket(new Guid(contexto.UserID));
>
> if(canasta.OrderForms[0].LineItems.Count > 0){
>
> foreach(LineItem item in canasta.OrderForms[0].LineItems){
> // here you can access the properties like:
> // item.Quantity
> }
> }
>
> hope it helps
>
>
> "Ken Brown" <kbrown@nospamplease.formulaboats.com> wrote in message
> news:uG%23uFVTgEHA.380@TK2MSFTNGP10.phx.gbl...
>
>
| |
| gustavo echeverry 2004-08-13, 5:51 pm |
| Ken
to extend the bizdesk you have to develop a module knowing:
Dynamic Hypertext Markup Language (DHTML)
Extensible Markup Language (XML)
Extensible Stylesheet Language (XSL)
XML Query Language (XQL)
Active Data Objects (ADO)
HTML Components (HTC), also known as DHTML Behaviors
Active Server Pages (ASP)
but in my opinion is rather complicated and time consuming in development
time,
i'd choose another option intead.
has to be done using bizdesk?
"Ken Brown" <kbrown@nospamplease.formulaboats.com> wrote in message
news:%233U10zTgEHA.3348@TK2MSFTNGP12.phx.gbl...
> Gustavo,
>
> Thanks for the quick response. Do you know if there's an easy (or not
> extremely difficult) way to extend the business desk to perform this task?
>
> Ken
>
> "gustavo echeverry" <gecheverry@intergrupo.comNOSPAM> wrote in message
> news:uoj1qeTgEHA.1644@tk2msftngp13.phx.gbl...
will[vbcol=seagreen]
>
>
| |
| Ken Brown 2004-08-13, 5:51 pm |
| Gustavo
Not necessarily. I was just wondering since most of my info is already
there.
Ken
"gustavo echeverry" <gecheverry@intergrupo.comNOSPAM> wrote in message
news:%23R9O4OUgEHA.2908@TK2MSFTNGP10.phx.gbl...
> Ken
> to extend the bizdesk you have to develop a module knowing:
>
> Dynamic Hypertext Markup Language (DHTML)
> Extensible Markup Language (XML)
> Extensible Stylesheet Language (XSL)
> XML Query Language (XQL)
> Active Data Objects (ADO)
> HTML Components (HTC), also known as DHTML Behaviors
> Active Server Pages (ASP)
>
> but in my opinion is rather complicated and time consuming in development
> time,
> i'd choose another option intead.
>
> has to be done using bizdesk?
>
> "Ken Brown" <kbrown@nospamplease.formulaboats.com> wrote in message
> news:%233U10zTgEHA.3348@TK2MSFTNGP12.phx.gbl...
> will
>
>
|
|
|
|
|