BV Commerce Forum
»
BV Commerce Support
»
Development
»
Shipping Workflow to add product extra ship fee
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?
|
|
|
|
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.