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;
}