• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Andy Miller
#1 Posted : Friday, October 20, 2006 3:47:01 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
I have a situation where the ShippingProvider can return an accurate rate estimate if the region is included or a less accurate estimate if the region is not included. I am going to let the merchant decide if the region is required or not. This will be stored in the local component settings for the ShippingMethod.


I would like to write my ShippingProvider.RequiresState override so that it looks something like:




Code:

public override boolean RequiresState

{

get

{

return _localSettings.GetBooleanSetting("RequiresState", true);

}

}

That means that I need a way of telling the ShippingProvider which set of component settings to use. One suggestion is to add a property (i.e. provider.Method = method). Another suggestion is to change all the "Requires" properties to require a ShippingMethod argument (this would logically match GetRates which requires the method).



I think they would both require about the same amount of coding changes, though the second would temporarily "break" existing 3rd party providers (which would be OK with me).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012