Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add variable to email order confirmation.


ttetzloff

Recommended Posts

Ok. Here it goes. I created new two new fields (evening and daytime phone number) for the shipping destination. They display and store in the databse and website absolutely fine but I cannot for the life of me figure out how to display these values on the order email that goes to the client and store. I know the email is in checkout_process.php but I cannot figure out how to display these variables on the email. Please help.

 

-Tyler

-Tyler

Link to comment
Share on other sites

UPDATE WITH SOLUTION!

 

I recieved help with this problem from another member of this forum and I figured that I would post the solution on here in

case anyone was having the same problem:

 

You want to add these new fields to the "query" and "cart" function in catalog/includes/classes/order.php so that they get

added to the $this->delivery array. You can then reference $order->delivery['abphone_number'] in checkout_process.php.

 

:thumbsup:

-Tyler

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...