Commerce Server General - Set Shipping Rates

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > November 2005 > Set Shipping Rates





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 Set Shipping Rates
Drew

2005-10-30, 5:50 pm

Does anyone know how to write a custom page to set shipping rates for a
specific method in .net?

The runtime objects only have a getshippingmethods method. Somehow I would
like to open the marshalled data to retrieve the rates, display them, and
have the ability to update them.

Please let me know if anyone has been able to accomplish this.

Thanks,
Drew
Drew

2005-11-08, 6:21 pm

Anybody have any ideas on this?

Thanks,
Drew

"Drew" wrote:

> Does anyone know how to write a custom page to set shipping rates for a
> specific method in .net?
>
> The runtime objects only have a getshippingmethods method. Somehow I would
> like to open the marshalled data to retrieve the rates, display them, and
> have the ability to update them.
>
> Please let me know if anyone has been able to accomplish this.
>
> Thanks,
> Drew

Nihit Kaul [MSFT]

2005-11-10, 6:00 pm

The following class should help you do this:

ShippingMethodManager.CreateMethodInstance Method (PIA)

From the Help:

ShippingMethodManager.CreateMethodInstance Method (PIA)
Use this method to create a new shipping method.

Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Orders

Public Function CreateMethodInstance(
ByRef bOnDisk As Object
) As Object
[C#]
using Microsoft.CommerceServer.Interop.Orders;

public object CreateMethodInstance(
ref object bOnDisk
);
Parameters
[Visual Basic .NET]
bOnDisk
An Object containing a Boolean indicating whether or not to create the
shipping method on disk. This parameter is usually set to True.
[C#]
bOnDisk
An object containing a bool value indicating whether or not to create the
shipping method on disk. This parameter is usually set to True.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns an
Object containing a string that is the method ID of the new shipping
method. The method returns an empty string when the bOnDisk parameter is
False.

[C#] This method returns an object containing a string that is the method
ID of the new method. It is set to an empty string value if the bOnDisk
parameter is False.

Exceptions
This method may throw one of many mapped exceptions or an exception of type
COMException. See Standard COM Errors for additional details.

Remarks
If the shipping method is created to be saved on disk (the bOnSaved
parameter is True), the function adds a new record to the current recordset
with the enabled column value set to zero (0) and the shipping_method_id
column set to the new shipping method ID.


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
--------------------
Thread-Topic: Set Shipping Rates
thread-index: AcXjxKyaRj7KntFuR9i2GkebYO+cPw==
X-WBNR-Posting-Host: 63.149.37.194
From: "=?Utf-8?B?RHJldw==?=" <Drew@discussions.microsoft.com>
References: <283A6B17-06C4-41C6-8F4A-AD17C268409D@microsoft.com>
Subject: RE: Set Shipping Rates
Date: Mon, 7 Nov 2005 09:57:09 -0800
Lines: 18
Message-ID: <14C0B3BA-BD36-4B88-99DF-98FD1D4A3806@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:3783
X-Tomcat-NG: microsoft.public.commerceserver.general

Anybody have any ideas on this?

Thanks,
Drew

"Drew" wrote:

> Does anyone know how to write a custom page to set shipping rates for a
> specific method in .net?
>
> The runtime objects only have a getshippingmethods method. Somehow I

would
> like to open the marshalled data to retrieve the rates, display them, and
> have the ability to update them.
>
> Please let me know if anyone has been able to accomplish this.
>
> Thanks,
> Drew


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com