Jump to content

Phone and Mobile in Order Complete Email


Moshe Nitzani

Recommended Posts

Hello

I have been trying to include the Phone number in the Order Complete emails sent to the Admin. So far I have modified the following array in \classes\cart\order.php (around line 275)

$macroArray = array(

								"RECIP_NAME"		=> $this->orderSum['name'],

								"ORDER_ID"			=> $this->orderSum['cart_order_id'],

								"ORDER_DATE"		=> formatTime($this->orderSum['time']),

								"INVOICE_NAME"		=> $this->orderSum['name'],

								"SUBTOTAL"			=> priceFormat($this->orderSum['subtotal'], true),

								"SHIPPING_COST"		=> priceFormat($this->orderSum['total_ship'], true),

								"TAX_COST"			=> priceFormat($this->orderSum['total_tax'], true),

								"GRAND_TOTAL"		=> $grandTotal,

								"INVOICE_COMPANY"	=> $this->orderSum['companyName'],

								"INVOICE_ADD_1"		=> $this->orderSum['add_1'],

								"INVOICE_ADD_2"		=> $this->orderSum['add_2'],

								"INVOICE_CITY"		=> $this->orderSum['town'],

								// - added phone field

								"INVOICE_PHONE"		=> $this->orderSum['phone'],

								"INVOICE_REGION"	=> $this->orderSum['county'],

								"INVOICE_POSTCODE"	=> $this->orderSum['postcode'],

								"INVOICE_COUNTRY"	=> getCountryFormat($this->orderSum['country'], 'id', 'printable_name'),

								"DELIVERY_NAME"		=> $this->orderSum['name_d'],

								"DELIVERY_COMPANY"	=> $this->orderSum['companyName_d'],

								"DELIVERY_ADD_1"	=> $this->orderSum['add_1_d'],

								"DELIVERY_ADD_2"	=> $this->orderSum['add_2_d'],

								"DELIVERY_CITY"		=> $this->orderSum['town_d'],

								"DELIVERY_REGION"	=> $this->orderSum['county_d'],

								"DELIVERY_POSTCODE"	=> $this->orderSum['postcode_d'],

								"DELIVERY_COUNTRY"	=> $this->orderSum['country_d'],

								"PAYMENT_METHOD"	=> $this->orderSum['gateway'],

								"DELIVERY_METHOD"	=> $this->orderSum['shipMethod']

							);

						






and added in language\en\email.inc.php ( around Line 57)




Invoice Address:

{INVOICE_NAME}

{INVOICE_ADD_1}

{INVOICE_ADD_2}

{INVOICE_CITY}

{INVOICE_REGION}

{INVOICE_POSTCODE}

{INVOICE_COUNTRY}

{INVOICE_PHONE}

However, the Order Complete emails are still without the Phone number. Is there something else I need to do?

Many Thanks

Moshe

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