[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Re: qty+length_width
> > I would like to be able to produce a calculated price for a custom cut item
> > in a cart, based upon the formal qty * length * width. Another Minivend
> > user was quite helpful with a solution which allows the end user to type a
CommonAdjust products:price, &{Vend::ClientPricing::scrubs();}
For http://www.maine.com/scrubs/Catalog
That makes adjustments based on hem, print and pockets. It's done
in a custom lib/Vend/ClientPricing.pm module. In that particular
case, minivend3.11. ClientPricing amounts to:
while (1) {
if code=this
do this
last
if code=that
do that
last
}
You could also use a catalog routine if you
don't have access to raw pm files. Safer too. ;^)
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.