MiniVend Akopia Services

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

FATAL Error ....



So much for my dissappearing prices - :-( At sometime over the last few
days, I must have commented out the CommonAdjust line in catalog.cfg,
so that one is fixed.

I now have my discount total appearing in basket.html, checkout.html
and receipt.html but when I add the same code to report, I get

FATAL error
glob trapped by operation mask at (eval 77) line 1.

The code is
[column width=59 align=right]NEW RELEASE DISCOUNT[/column]
[column width=10 align=right gutter=0][currency][calc][subtotal noformat=1] - $\MySubTotal[/calc][/currency][/column]

further up the file I have the following
[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]
   return( '' );
[/calc]
[discount ENTIRE_ORDER]
   my( $d ) = 0;
   $d += 10.00 if ( $NewReleaseCD > 3 );
   $d +=  5.00 if ( $NewReleaseTape > 3 );
   return( $s - $d );
[/discount]

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
http://www.godzone.net.nz, EMail: agree@godzone.net.nz, ICQ: 10397208
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Search for: Match: Format: Sort by: