Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help adding telephone to Address display


Trilec

Recommended Posts

I would like to add the telephone number to the address display

in "checkout_process.php" and "checkout_confirmation.php"

I looked at the general.php to add the telephone to the function

line 423 function tep_address_format($address_format_id, $address, $html, $boln, $eoln)

but am unsure where to begin or even if this is the currect place

I dont mind if when the system asks for the address the telephone number is included ie. in the confirmation page.

 

tks for any help

Link to comment
Share on other sites

I would like to add the telephone number to the address display

in "checkout_process.php" and "checkout_confirmation.php"

I looked at the general.php to add the telephone to the function

line 423 function tep_address_format($address_format_id, $address, $html, $boln, $eoln)

but am unsure where to begin or even if this is the currect place

I dont mind if when the system asks for the address the telephone number is included ie. in the confirmation page.

 

tks for any help

Who's telephone Nr do you want to add, yours or the customers?

 

If it's yours go to osC Administration Panel > Configuration > Store look down the list till you come to > Store Address & Phone < left click the 'Edit' Button fill in the form like you would write an address:

 

Example

 

MyCompanyName (If you are a Registered Company) or MyWebsiteName

MyContactName (Optional)

Number/#1024 The Best Building,

In the Best Street,

In the Best Town,

In the Best County/Province/State (Depends on your Country)

With the Best Post/Zip Code

In the Best Country

 

Contact Numbers:

 

Faximile: (Country Code) (0)12 34 56 78

Office: (Country Code) (0)12 34 56 78

Personal: (Optional) (Country Code) (0)12 34 56 78

Mobile Phone: (Optional) (Country Code) (0)12 34 56 78

Pager: (Optional) (Country Code) (0)12 34 56 78 + any other necessary Nr's

E-mail: MyBusinessE-mail

and anything Else you Want to Add

=========================

If it's your customers Phone Nr -

 

Where do you want it to show?

 

Do you want it on the Shipping Address and/or the Billing Address? If so why? I'm sure they know their own Phone Nr, the purpose of these two listings is to confirm delivery of goods Address and what the payers Address is on their credit card account.

 

e.g I don't need my phone Nr on an address confirmation or an Invoice unless it's a phone sevice bill!!!!

 

You can send me a PM if you wish.

 

Kind Regards,

Michelle.

Link to comment
Share on other sites

PARCEL COMPANIES ASK FOR PHONE NUMBERS FOR DELIVERIES

 

Who's telephone Nr do you want to add, yours or the customers?

 

If it's yours go to osC Administration Panel > Configuration > Store look down the list till you come to > Store Address & Phone < left click the 'Edit' Button fill in the form like you would write an address:

 

Example

and anything Else you Want to Add

=========================

If it's your customers Phone Nr -

 

Where do you want it to show?

 

Do you want it on the Shipping Address and/or the Billing Address? If so why? I'm sure they know their own Phone Nr, the purpose of these two listings is to confirm delivery of goods Address and what the payers Address is on their credit card account.

 

e.g I don't need my phone Nr on an address confirmation or an Invoice unless it's a phone sevice bill!!!!

 

You can send me a PM if you wish.

 

Kind Regards,

Michelle.

Link to comment
Share on other sites

Who's telephone Nr do you want to add, yours or the customers?

 

Sorry, I know it was a bit vague. :blink:

The reason is I wanted to get the ph number of the customer is for fedX.

Im getting an email as the order is processed and throught this would be a good place to receive the shipping address and ph number.

you are currect, the customer does not to receive the ph ,just me.

shipping can just use the email and get all the info needed

(it seems like a nice addition to have a selectable information email sent to the

store owner with info that you may require to ship,in my case the phone)

I did not see this in the code, only a mirror of the order sent to the client?

so my assumption was add to the order process email the phone.

 

 

tks

Link to comment
Share on other sites

  • 1 month later...
Who's telephone Nr do you want to add, yours or the customers?

 

Sorry, I know it was a bit vague. :blink:

The reason is I wanted to get the ph number of the customer is for fedX.

Im getting an email as the order is processed and throught this would be a good place to receive the shipping address and ph number.

you are currect, the customer does not to receive the ph ,just me.

shipping can just use the email and get all the info needed

(it seems like a nice addition to have a selectable information email sent to the

store owner with info that you may require to ship,in my case the phone)

I did not see this in the code, only a mirror of the order sent to the client?

so my assumption was add to the order process email the phone.

tks

 

for the email, find the email part of billing address in your checkout_process.php and replace the block with this:

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 tep_address_label($customer_id, $billto, 0, '', "\n") . "\n" .
                 $order->customer['telephone'] . "\n" .
      	 $order->customer['email_address'] . "\n\n";              

 

this code adds the email address and the phone number.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...