[ic] [item-subtotal] manually

Ed LaFrance interchange-users@lists.akopia.com
Wed May 30 11:31:00 2001


At 12:37 PM 05/30/2001 +0400, you wrote:
>Hi, people!
>
>I need correct [item-subtotal] calculate mechanism.
>Qty.*Price=[item-subtotal] does not satisfy me.
>I need include in this mechanism subscribtion period
>parametr.
>That is :
>Qty.*Price_of_copy*Numbers_of_copy=[item-subtotal].
>Or, calculate charge manually and set [item-subtotal], like
>[perl arg="carts"]
>$new_quantity = xxx;
>@$Safe{'carts'}->{'main'}->{'[item-code]'}=$new_quantity;
>return '';
>[/perl]
>

I would guess that the best course of action for you would be to override 
the item_subtotal subroutine in Data.pm, an example is here:

http://developer.akopia.com/cgi-bin/ic/dev/icconfig_27.html

- Ed L.




===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================