best method of catching extra information at checkout, like phone number

Phillip Mc - February 20, 2009 - 09:45
Project:e-Commerce
Version:6.x-4.x-dev
Component:ec_checkout
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

What's the best method of catching extra information at the checkout stage with ecommerce, like a phone number or purchase order number?

Phil

#1

gordon - February 20, 2009 - 12:36

For purchase orders take a look at the ec_paperpayments module which may allow you to get this information. see http://drupal.org/project/ec_paperpayments

But for phone numbers I am not sure what you need it for, since this could be done many ways depending on what the phone number is.

If you are wanting to add the phone number to the billing address, then you could hook_form_alter() to add the phone number to the form, and then use hook_schema_alter() to extend the ec_transaction_address table to include the phone. It all depends on what you want to do.

Gordon.

#2

gordon - August 3, 2009 - 00:05
Status:active» fixed

Also you can user the Address extra as a template for adding more to the address field.

See http://drupal.org/project/ec_address_extra for the example module, which adds the phone number to the address field.

#3

System Message - August 17, 2009 - 00:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

jmajsai - October 24, 2009 - 00:15
Status:closed» active

Hi there!

I just can't manage to use the phone number. Its box appears in the checkout form due to the address_extra module, but then I won't see the given phone number again.
I made the Phone field to appear at the Ecommerce/Transactions view, but it is always empty.
Could it be possibly fixed?
One more thing: should it work for logged in users and Anon. customers in the same way? I mean I'd like to see the phone numbers (or any other data defined in address_extra) given by Anon customers.

 
 

Drupal is a registered trademark of Dries Buytaert.