MiniVend Akopia Services

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

RE: [mv] FATAL Error ....



******    message to minivend-users from "Glen and Rosanne Eustace" <agree@godzone.net.nz>     ******

Thanks Joachim, this was the right approach.  I don't know why
etc/report gets an error and ord/basket.html and ord/checkout.html are
fine.  My solution ended up being to use both methods.

> [calc]
>    $MySubTotal = 0;
>    [item-list]
>       $NewReleaseCD += [item-quantity]
>         if ( "[item-code]" =~
/^VMD(9310|9282|9305|9316|9300|93019304|9728)$/ );
>       $NewReleaseTape += [item-quantity]
>          if ( "[item-code]" =~
/^VMC(9310|9282|9305|9316|9300|93019304|9728)$/ );
>       $MySubTotal += [item-price noformat=1] * [item-quantity];
>    [/item-list]
>    [set name="MySubTotal"]$MySubTotal[/set]
>    return( '' );
> [/calc]
> [discount ENTIRE_ORDER]
>    my( $d ) = 0;
>    $d += 10.00 if ( $NewReleaseCD > 3 );
>    $d +=  5.00 if ( $NewReleaseTape > 3 );
>    return( $s - $d );
> [/discount]

and then in ord/basket.html and ord/checkout.html, I can use $MySubTotal
as I had been doing and then as suggested do the following in etc/report

> [column width=10 align=right gutter=0][currency][calc][subtotal
noformat=1] - [scratch MySubTotal][/calc][/currency][/column]
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen Eustace, on behalf of
GodZone Internet Services, a division of AGRE Enterprises Limited.
P.O. Box 8020, Palmerston North, New Zealand
Ph: +64 6 356 2562, Fax: +64 6 357 0271, Mobile: 025 416 184,
http://WWW.GodZone.Net.NZ

-
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: