[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Adding a field to checkout/receipt
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