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
In order to use them in tpl, you have to make those variables in admin/controller/sale/order.php inside the invoice method.
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
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
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
Who is online
Users browsing this forum: No registered users and 3 guests