Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Callback.php - Adding company name, Please check


skipunda

Recommended Posts

Hi all,

 

Just wanted to add this line into the customer email that goes and just checking this is the right coding as I cant test this. Please note lack of "", instead replaced with ' ' so the syntax looks correct in my wysiwyg editor.

 

$email_order.=$order->customer['firstname'] . ' ' . $order->customer['lastname'].'

'.$order->delivery['company'].'

'.$order->delivery['street_address']."

".$order->delivery['city']."

". $order->delivery['suburb']."

".$order->delivery['state']."

".$order->delivery['country']['title']."

".$order->delivery['postcode'];

 

Ta

Link to comment
Share on other sites

Hi all,

 

Just wanted to add this line into the customer email that goes and just checking this is the right coding as I cant test this. Please note lack of "", instead replaced with ' ' so the syntax looks correct in my wysiwyg editor.

 

$email_order.=$order->customer['firstname'] . ' ' . $order->customer['lastname'].'

'.$order->delivery['company'].'

'.$order->delivery['street_address']."

".$order->delivery['city']."

". $order->delivery['suburb']."

".$order->delivery['state']."

".$order->delivery['country']['title']."

".$order->delivery['postcode'];

 

Ta

 

 

 

This is a better way to put it - namely because of the 'new line' declarations, saving on white space and making it easier to parse

 

$email_order.= $order->customer['firstname'] . ' ' . $order->customer['lastname']."\n" .

$order->delivery['company']."\n" .

$order->delivery['street_address']."\n" .

$order->delivery['city']."\n" .

$order->delivery['suburb']."\n" .

$order->delivery['state']."\n" .

$order->delivery['country']['title']."\n" .

$order->delivery['postcode'];

 

and yes I did just reply to my own post <wink>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...