I am having trouble getting the customer's phone number on the printable invoice. I tried tweaking the code but all I am getting is the store phone number.
I am using OpenCart 1.5.0
I would greatly appreciate if anyone can help me with this

Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
Code: Select all
$this->data['orders'][] = array(
'order_id' => $order_id,
'invoice_no' => $invoice_no,
'invoice_date' => date($this->language->get('date_format_short'), strtotime('now')),
'date_added' => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])),
'store_name' => $order_info['store_name'],
'store_url' => rtrim($order_info['store_url'], '/'),
'address' => nl2br($this->config->get('config_address')),
'telephone' => $this->config->get('config_telephone'),
'fax' => $this->config->get('config_fax'),
'email' => $this->config->get('config_email'),
'shipping_address' => $shipping_address,
'payment_address' => $payment_address,
'product' => $product_data,
'total' => $total_data,
'comment' => nl2br($order_info['comment'])
);
Code: Select all
$this->data['orders'][] = array(
'order_id' => $order_id,
'invoice_no' => $invoice_no,
'invoice_date' => date($this->language->get('date_format_short'), strtotime('now')),
'date_added' => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])),
'store_name' => $order_info['store_name'],
'store_url' => rtrim($order_info['store_url'], '/'),
'address' => nl2br($this->config->get('config_address')),
'telephone' => $this->config->get('config_telephone'),
'customer_phone' => $order_info['telephone'],
'fax' => $this->config->get('config_fax'),
'email' => $this->config->get('config_email'),
'shipping_address' => $shipping_address,
'payment_address' => $payment_address,
'product' => $product_data,
'total' => $total_data,
'comment' => nl2br($order_info['comment'])
);
Code: Select all
<?php echo $order['telephone']; ?>
Code: Select all
<?php echo $order['telephone']; ?>
Code: Select all
<?php echo $order['customer_phone']; ?>
Users browsing this forum: Baidu [Spider] and 90 guests