International handling fee

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
beveled
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Thu Feb 28, 2008 6:21 am
Location: Pittsburgh, PA (Go Steelers!)

International handling fee

Post by beveled » Tue Apr 08, 2008 12:43 pm

Hi,

I want to add a % fee (in addition to the extra shipping charges) for the processing of international orders. Any ideas on how to do that?

I've located the openpagecheckout conlib, as well as the imported BasketTotalSummary page, but the trouble is trying to link the drop-down for billto country with the BasketTotalSummary page. Below is the code in the baskettotalsummary.ascx.cs file that seems to calculate the total, depending on what options are enabled and used. So I added a few new lines of code for the new fee, but now I'm having a hard time figuring out how these other OrderItemTypes get in there. Looking back at openpagecheckout.ascx.cs, I don't see where these values are passed.

Thanks,

Beveled

Code: Select all

switch (item.OrderItemType)
            {
				case OrderItemType.Shipping:
                case OrderItemType.Handling:
                    shipping += extendedPrice;
                    break;
                case OrderItemType.Tax:
                    taxes += extendedPrice;
                    break;
                case OrderItemType.Coupon:
                    coupons += extendedPrice;
                    break;
                case OrderItemType.GiftWrap:
                    giftwrap += extendedPrice;
                    break;
                //BEVELED'S NEW CODE FOR INTL HANDLING FEE
				case OrderItemType.IntLFee:
					IntlHandling += extendedPrice;
					break;
				//END BEVELED'S NEW CODE
                default:
                    subtotal += extendedPrice;
                    break;
            }

beveled
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Thu Feb 28, 2008 6:21 am
Location: Pittsburgh, PA (Go Steelers!)

Re: International handling fee

Post by beveled » Tue Apr 08, 2008 2:03 pm

Never mind. I just created a new tax code, changed the label to taxes/int'l fee with an asterisk and now we're good to go without a customization.

User avatar
troutlet
Lieutenant (LT)
Lieutenant (LT)
Posts: 77
Joined: Mon Sep 24, 2007 3:01 am
Location: USA
Contact:

Re: International handling fee

Post by troutlet » Tue Apr 08, 2008 8:55 pm

That's a very good work around. Nice going.

Post Reply