[ic] How to change the value of a variable

Mike Heins mikeh@minivend.com
Sat, 31 Mar 2001 07:12:02 -0500

Quoting Dan B (db@cyclonehq.dnsalias.net):
> At 02:07 PM 3/30/2001 -0800, you wrote:
> >We need to add some handling fee based on the subtotal on the shiping, I
> >can edit the checkout.html, and have the following:
> >
> >[calc][shipping noformat=1]+[subtotal noformat=1]*0.0035[/calc]
> >
> >this gives us a correct shipping fee on the checkout page. But the
> >value is not correct in the order page. So are there any ways I can
> >modify the [shipping] variable so that it will be changed on all pages.
> I am wondering the same thing.  So far, I've solved the problem by going 
> through every page where [shipping] is used, and replacing it with a call 
> to a usertag (or [include ...]) that does the calculation.
> Maybe a better alternative will come out during discussion.  (catalog.cfg 
> entry?)

You can add another shipping charge via mv_handling.

Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

My wife is great.  She doesn't care where I go, just as long as I don't
have any fun.  -- Lee Trevino