Commerce Server General - Extending Shipping Methods in CS2007

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2006 > Extending Shipping Methods in CS2007





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 Extending Shipping Methods in CS2007
Tom Tausmann

2006-09-20, 1:22 pm

Hello,
i want to extend the Shippingmethods and dont know how to do it.

I added an additional Field which i need to the Transaction_Config Shipping
Method Table and extended the Strored Procedures of Transaction_Config
(UpdateShippingMethod .... ).

But now i ' am looking for the best way to continue:

- Way 1 -not the best way- : Writing some Code with a direct SQL Connection
to DB an getting and setting the Shipping Methods from the Site. But i want
to use the Customer and Orders Manager to set the Shipping Methods and the
contained additional Field - but this is the wrong way for that.

- Way 2 -pretty but hard way- : Overriding the CS Method which gets the
Shipping Method DataSet - but i dont know which class to override and how to
get the shippingmethods from the cache

- Way 3 -pretty way-: 2 Weeks ago i extended the OrdersSystem (OrderForm)
this worked very well (Cusomizing like) ... is it possible to to customize
the shippingmethods fields too ??? (didnt found anything yet)

Maybe someone can help (propose a way ... help with way 2 code snipped ...
had it already extended a better way) .. this would be great.

Thank you very much

Tom


Colin Bowern

2006-09-20, 7:37 pm

Tom,

The creation of the ShippingMethods DataSet is hard coded to specific
columns, so I don't think you'll have any luck using out-of-the-box classes.
It's a shame that this wasn't made extensible in the same way the other key
order classes are.

What I've done is circumvent the load by writing my own retrieval method
which calls a stored procedure to pull down the shipping methods, including
the columns I have added. It works quite well in my circumstance where I
use the columns are used for filtering the options (e.g. countries supported
by a particular delivery method).

For the Winforms UI the source code is available for download on
microsoft.com. You'll be able to locate the point at which the bind and
save are done and make the necessary modifications to load/save the
ancillary data.

Cheers,
Colin

"Tom Tausmann" <TomTausmann@discussions.microsoft.com> wrote in message
news:E12A9919-847E-41CA-926D-092A29D14664@microsoft.com...
> Hello,
> i want to extend the Shippingmethods and dont know how to do it.
>
> I added an additional Field which i need to the Transaction_Config
> Shipping
> Method Table and extended the Strored Procedures of Transaction_Config
> (UpdateShippingMethod .... ).
>
> But now i ' am looking for the best way to continue:
>
> - Way 1 -not the best way- : Writing some Code with a direct SQL
> Connection
> to DB an getting and setting the Shipping Methods from the Site. But i
> want
> to use the Customer and Orders Manager to set the Shipping Methods and the
> contained additional Field - but this is the wrong way for that.
>
> - Way 2 -pretty but hard way- : Overriding the CS Method which gets the
> Shipping Method DataSet - but i dont know which class to override and how
> to
> get the shippingmethods from the cache
>
> - Way 3 -pretty way-: 2 Weeks ago i extended the OrdersSystem (OrderForm)
> this worked very well (Cusomizing like) ... is it possible to to customize
> the shippingmethods fields too ??? (didnt found anything yet)
>
> Maybe someone can help (propose a way ... help with way 2 code snipped ...
> had it already extended a better way) .. this would be great.
>
> Thank you very much
>
> Tom
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com