[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] One-time *AND* recurring charge totals?
Quoting William W. Ferrell (william@venturesonline.com):
> Greetings, everyone.
>
> I'm trying to set up a seemingly straightforward shop for my employer (a
> web hosting company) but I'm having a bit of trouble.
>
> We'd like to be able to offer "base packages" then allow customizations.
> This part's easy -- the product options facility handles this. The
> trouble comes in because the goal is to present *two* totals to the
> customer. One is the "setup fee" that they'll pay up-front to get the
> account set up and running, and the other is the monthly recurring fee
> they'll pay monthly to keep the account current.
>
> I don't care one bit if Interchange does the recurring billing part :)
> I'd just like it to *show* the buying customer both the "due now" total
> and the "what you'll pay every month" total.
You can put items in more than one cart.
If you have a recurring item you want to add, there are several
ways. I believe an [add-item ...] tag is floating around somewhere,
and it can be done easily with:
[calc]
$Carts->{recurring} ||= [];
my $item = {
## required attributes
code => 'RECUR-01',
quantity => 1,
## optional attribute
attribute => 'foo',
};
push @{$Carts->{recurring}}, $item;
return;
[/calc]
Now you can display it with:
[item-list cart=recurring]
[item-code] -- [item-description]
Price: [item-price]
[/item-list]
and total it with:
[total-cost cart=recurring]
This is all independent of the main cart.
--
Mike Heins
Perusion -- Expert Interchange Consulting
phone +1.513.523.7621 <mike@perusion.com>
"All you need in this life is ignorance and confidence, and
then success is sure." -- Mark Twain