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

Notification

Icon
Error

ChristianMoments
#1 Posted : Wednesday, March 28, 2007 5:16:07 AM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I'm writing a shipping workflow to total the extra ship fee of the products in the order and then add that total to each shipping rate. Something like this will do it:

For Each item As Orders.LineItem In Context.Order.Items
sgExtraShipFee = sgExtraShipFee + item.AssociatedProduct.ExtraShipFee
Next

For Each item As Shipping.ShippingRate In Rates
item.Rate = item.Rate + sgExtraShipFee
Next

The problem is that every time the shipping is quoted, the extra ship fee is being added. So if the total extra ship fee is 8.00 and the shipping is 7.00, the first time you get a shipping quote, the total shipping will be 15.00. The second time, it will add another 8.00 for a total of 23.00. Does anyone have any experience with adding the extra ship fee via a workflow?
ChristianMoments
#2 Posted : Sunday, April 1, 2007 10:06:43 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I actually got it done and it wasn't too bad. The workflow detects an order with an item over 70 lbs and removes all other shipping options except for freight and local pick up. Also, does the vice versa removing freight from the shipping options if all items in the order are less than 70 lbs. Then it goes in an adds the product extra ship fee to each shipping rate.
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