Post by pac_indahood » Mon Jun 06, 2016 11:31 pm

Hello,

I want to remove <?php echo $payment_address; ?> (here we have all information about customer like name, address etc.) and i want to have like this:

Name: <?php echo $customer_name; ?>
Address: <?php echo $customer_address; ?>

Thank you guys

New member

Posts

Joined
Sat Oct 30, 2010 2:50 am

Post by inactiveaccount9912 » Tue Jun 07, 2016 2:25 pm

In order to use them in tpl, you have to make those variables in admin/controller/sale/order.php inside the invoice method.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by pac_indahood » Tue Jun 07, 2016 6:57 pm

Thank you florinsith!

New member

Posts

Joined
Sat Oct 30, 2010 2:50 am

Post by pac_indahood » Tue Jun 07, 2016 6:58 pm

Do you have any idea how should them look?

Thank you for your answer

New member

Posts

Joined
Sat Oct 30, 2010 2:50 am

Post by pac_indahood » Tue Jun 07, 2016 9:26 pm

ok, i found the answer:

The variable $order which contains all the data in order_info table, for example :
$order['firstname'];
$order['lastname'];
$order['payment_firstname'];
$order['payment_address_1'];
$order['shipping_firstname'];
etc...

Here a full list of values you can use :
order_id
invoice_no
invoice_prefix
store_id
store_name
store_url
customer_id
customer_group_id
firstname
lastname
email
telephone
fax
custom_field
payment_firstname
payment_lastname
payment_company
payment_address_1
payment_address_2
payment_city
payment_postcode
payment_country
payment_country_id
payment_zone
payment_zone_id
payment_address_format
payment_custom_field
payment_method
payment_code
shipping_firstname
shipping_lastname
shipping_company
shipping_address_1
shipping_address_2
shipping_city
shipping_postcode
shipping_country
shipping_country_id
shipping_zone
shipping_zone_id
shipping_address_format
shipping_custom_field
shipping_method
shipping_code
comment
total
order_status_id
affiliate_id
commission
marketing_id
tracking
language_id
currency_id
currency_code
currency_value

maybe someone else will need this info

New member

Posts

Joined
Sat Oct 30, 2010 2:50 am
Who is online

Users browsing this forum: No registered users and 3 guests