[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Billing Address at checkout
At 07:17 PM 06/27/2002 -0700, you wrote:
>Is there a way to modify Foundation so that the billing variables like
>b_fname, b_state, etc. go through some error checking like the shipping
>variables? I'd like to implement something where checking a checkbox
>means you can leave the billing fields blank and they will just be pulled
>from the shipping fields after submitting. I want the required billing
>fields to go through the error checking only if the checkbox isn't
>checked. Can this be pulled off with catalog-level files? Thank you!
>
>- Grant
Grant -
You could do this by modifying pages/ord/checkout.html and
etc/profiles.order. First you would add the checkbox near the billing info
on checkout.html
<input type=checkbox name=bill_eq_ship value=1 [checked bill_eq_ship 1]>
Same as shipping address
[value name=bill_eq_ship set='']
...the value tag 'resets' the value of bill_eq_ship in memory so the form
input takes precedence.
Then in the appropriate checkout profile for your supported payment methods
(i.e.: credit_card), do:
[if !value bill_eq_ship]
b_fname=required
b_lname=required
b_address1=required
(you get the idea)
[/if]
You will probably also want to add the [error] tag to the field lables in
the billing address area - follow the example given in the shipping info area.
- Ed L.
===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================