[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Need help: Adjusting checkout.html
****** message to minivend-users from Chris =?iso-8859-1?Q?M=FCller?= <cmueller@polinet.ch> ******
I have had a similar problem with [total-cost]. This tag returns the formatted string (inl. currency chars) and is not a number.
I had to remove the characters in the string and make the VAT calculations thereafter.
I have seen the "noformat=1" parameter in some places, however, I have not tried it with the [total-cost] tag. You may want to try that before you go any further.
Chris
Oliver Schade wrote:
> ****** message to minivend-users from Oliver Schade <schade@outsource.de> ******
>
> Aloha,
>
> On Thu, 4 Mar 1999, Dan Busarow wrote:
> > I'm guessing that what you really want for VAT is subtotal - (subtotal//1.16)
>
> Yes. My fault...
>
> > UserTag vat HasEndTag
> > UserTag vat Interpolate
> > UserTag vat Routine sub { ($a) = @_; return $a-$a/1.16; }
>
> According to the minivend.cfg I changed this to
>
> UserTag vat hasEndTag 1
> UserTag vat Interpolate 1
> UserTag vat Routine <<EOF
> sub {
> my ($a) = @_;
> return ($a-$a/1.16);
> }
> EOF
>
> and included the suggested [vat][subtotal][/vat] in .../pages/ord/checkout.html
>
> But this results *always* in a number of 0 :-(( Any other ideas (yes, I
> restarted the server)?
>
> Many thanks for your help,
>
> Oliver
> --
> "thingy:Perlisch fuer: Also dieses Dingens, aehm, achnee, zirkulaer; ich mein
> halt, oeh, irgendein Skalar, Array, Hash, Filehandle, Sub -- was immer...
> einfach diese Teile, auf die wo man einen Pointer, Bloedsinn, Quatsch,
> diese Referenzen zeigen lassen kann" [Andreas Karrer in de.comp.lang.perl]
> [<A HREF="http://mitarbeiter.mbi-berlin.de/schade/">My Homepage</A>]
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list