Akopia Akopia Services

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

Re: [mv] Add shipping to subtotal



******    message to minivend-users from "B.J. Bezemer" <bas.bezemer@wxs.nl>     ******

Hi paul

I don't use a UserTag to do such a thing, but calculate the sum in a page
with the following:

[currency][calc][subtotal noformat=1]+[shipping
noformat=1][/calc][/currency]

You need to set the "noformat=1" to add real numbers together instead of
fully configured currencies that are interpreted as strings.


Bas


----- Original Message -----
From: Paul Burden <paul_burden@tribalinternet.co.uk>
To: <minivend-users@minivend.com>
Sent: vrijdag 28 januari 2000 13:35
Subject: [mv] Add shipping to subtotal


> ******    message to minivend-users from "Paul Burden"
<paul_burden@tribalinternet.co.uk>     ******
>
> How do you add shipping to subtotal and then display it.
>
> My shipping and subtotals works.
>
> I tried inventing a USERTAG [total-ship] in the catalog.cfg
>
> # SUBTOTAL AMENDMENT
> # Subtotal includes the shipping
>
> UserTag subtotal-ship Routine <<EOR
> sub {
>  my $subt = '[[subtotal]]';
>  my $ship = '[[shipping]]';
>  $totalship = $subt + $ship;
>
>  return $totalship;
> }
> EOR
>
> So I could just display this subtotal-ship value like so.
>
> <FONT COLOR="red">[subtotal-ship]</FONT>
>
> Please can someone ASAP
>
> Paul Burden
> -
> 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


Search for: Match: Format: Sort by: