Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'd like to put the IP address collected by the IP_Recorder_1.4 contribution in the e-mail my customers receive when they place an order.

 

I got as far as opening checkout_process.php and found:

 

// lets start with the email confirmation

$email_order = STORE_NAME . "\n" .

EMAIL_SEPARATOR . "\n" .

EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .

EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .

 

So I tried adding this:

//BEGIN PERSONAL ADDITION TO ORDER_IP_RECORDER

HEADING_IPRECORDED_1 . "\n" .

YOUR_IP_IPRECORDED . ': ' . $order->customer['ipaddy'] . "\n".

 

It displays the heading message correctly (I copied this into the languages file first), and display "Ip address:" but the IP address does not display.

 

How do I get it to display it? It's contained in the orders table of the database, under a field named ipaddy.

 

Thanks! :thumbsup:

osCommerce is GREAT. When it works...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...