MiniVend Akopia Services

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

Re: [mv] C.O.D., INVOICE, ...



>******    message to minivend-users from "Bushwick Bill"
><bushwick@thepentagon.com>     ******
>
>Hi,
>
>has someone implemented new payment methods like C.O.D.,
>INVOICE, etc.
>I need i hint to do this or some code.
>
>bye
>Bushwick

My employer is an idustrial supplier, so most of our sales are on account.
I added a field called "terms" to the userdb and transactions databases,
then added some code to the checkout page to use it.  In our case, if the
user has terms, we display them on the checkout page, otherwise we default
them to C.O.D. or prepay:

	[if type=data term="userdb::terms::[data session username]"]
	Your Payment Terms With Us: <font size=+1><b>[value terms]</b></font>
	[else]
	Your Payment Terms With Us: <font size=+1><b>C.O.D. or
Prepay</b></font>
	<input type="hidden" name="terms" value="COD or Prepay">
	[/else]
	[/if]

Note that "C.O.D. or Prepay" gets written to the transactions database with
this line:
	<input type="hidden" name="terms" value="COD or Prepay">

because the code snipped is part of the checkout form in checkout.html.

I hope this gives you something to go on.  I strongly suggest you read
through the Mininvend docs section on DATABASES before proceeding with any
changes.

- Ed L.

-
PRINTEX Marking Technologies
12113 Kirkham Rd.
Poway, CA  92064  U.S.A.
(858) 513-2418
(800) 982-1928
(858) 513-2419 fax
edlafrance@printexusa.com
http://www.printexusa.com




Search for: Match: Format: Sort by: