[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Adding a field to checkout/receipt
Eric Paul <epaul@spellbook.net> wrote:
>
>I would like to add a field to my checkout procedure. I want this to be a
>required field, and to be able to save it in the user database and have it
>show up in my receipt and report.
>
>I added the field to my form with no troubles. It is a simple TEXT input
>box named "county" (not to be confused with country). I then went to my
>~/catalogs/simple/etc directory and made the following changes:
>
>order.profiles:
>
>__NAME__ all_in_one
>name=required
>address=required
>city=required
>county=required <---- Inserted this
>country=required
>
>
>receipt.html:
>
>City, State, Zip: [value city], [value state] [value zip]
>[if value county]
> County: [value county]
>[/if]
> Country: [value country]
>
>
>report:
>
>City, State, Zip: [value city], [value state] [value zip]
>[if value county]
> County: [value county]
>[/if]
> Country: [value country]
>
>
>After making these changes, my county field is not checked to verify that
>it is there before processing the form, the county is not saved to the
>database, and I don't see it in my receipt if I put it in and make an
>order. What did I forget to do?
>
>Eric
>---
>Eric Paul
>SpellBook Systems
>http://www.spellbook.net
>-
If you built up from the simple demo, you will probably find a [set
checkout_profile][/set] pair at the bottom of the page. Within these tags
are the actual validations for checkout,html, try adding county=required
there. Make sure you check "Save my information in the database" on the
checkout page, again this is assuming you used the simple demo as a
starting point. To save county info to a user's address book, you will
have to add it to the [set][/set] field strings for the address book
functions - take a look at the source for checkout.html and you will
probably get the idea.
If you do all this, I think the value should show up on your receipt and
report!
- 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