[interchange-cvs] CVS notice: activity by heins
Tue, 10 Apr 2001 18:50 -0500
CVS activity by user 'heins':
interchange/lib/Vend Interpolate.pm,22.214.171.124,126.96.36.199 Parse.pm,188.8.131.52,184.108.40.206
Update of /anon_cvs/repository/interchange/lib/Vend
In directory www.akopia.com:/tmp/cvs-serv17721
Add new tag "assign". It allows you to assign to four things,
subtotal preempts the cart subtotal derived from prices. NOT
shipping if any non-zero mv_shipmode is present at all,
sets the total value of shipping. Rounded
to fractional digits.
handling if any non-zero mv_handling is present at all, sets the
total value of shipping. Rounded to fractional
salestax preempts the salestax normally derived from the
salestax. NOT ROUNDED.
You cannot assign to total_cost -- it will always be the sum of the
If there is no assignment to one of the four, it will use the
normal method. To make salestax zero, you must use [assign salestax=0].
Called with [assign salestax=N.NN], etc. If the value has a length
of zero, will delete the assigned value from the assignment hash
and the normal method of calculation will kick back in.
If you call [assign clear=1] it will clear all, and the normal method
of calculation will kick back in.
If a non-real-number value is passed, it logs an error and clears
It is persistent in the user's session and effects only that user,
and should be used only when you know exactly what you are doing. Ha.