MiniVend Akopia Services

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

Re: error messages processing order



******    message to minivend-users from Larry Leszczynski <larryl@furph.com>     ******

Hi Andreas -

> [14/Mai/1999:16:13:50 +0200] simple /cgi-bin/simple/order Safe: syntax
> error at (eval 44) line 1, near "( ||"
> >
> > 1 * ( || 0)
> >

The demo files ord/basket.html and ord/checkout.html both have a line like
this to calculate to total weight of the order:

 [summary
    amount="[calc][item-quantity] * ([item-field weight] || 0)[/calc]"
    hide=1]

If you don't have a "weight" column in your database, or the weight field
is empty for an item, you get "[calc]1 * ( || 0)[/calc]" which is invalid 
perl syntax.

If you're not using weights for shipping, you can remove the [summary]
lines from those two files.  If you are using weights, make sure each item
has either a valid weight or the weight is 0 (not blank).
 

Larry Leszczynski
larryl@furph.com
--
  furph, Inc.	WWW/Unix/Windows Solutions	734-513-7763 (voice)
info@furph.com	   http://www.furph.com		734-513-7759 (FAX)

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