MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

a sub routine in minivend



Hi, I am just wondering if there is a way of writing a named subroutine in 
minivend so that I can call it in different perl code?
My thought comes from this: Sometimes the price scheme is bizaare so I
decide to reimplement the subtotal tag by my own scheme(define a user tag 
named subtotal). Then I have to reimplement tags:total, shipping. In every 
tag I have to write the same code to calculate the same price scheme, it 
will make my life much easier and happier if I can find something that I can 
define a sub total_amount() in the catalog.cfg and call it in my 3 tags. Is 
there a way to do this? Or am I wrong from the start?

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Search for: Match: Format: Sort by: