My OC version is 2.2.0.0
I am trying to modify the invoice sent to our customers by editing mail/order.tpl file.
I have these lines of text in the invoice:
Code: Select all
Invoice Nr.: 71595
Date: 21.04.2017
Payment Method: Cash
Shipping Method: Pickup
This "Pickup" line comes from /catalog/language/en-gb/shipping/pickup2.php file (or from any other shipping method language file).
Code: Select all
<?php
// Text
$_['text_title'] = 'Pickup';
$_['text_description'] = 'Pickup From Storehouse';
?>
I can easily change the order.tpl file to show this $_['text_description'] as static text, but because our store offers a few shipping methods, this line of text must be a variable that will change according to the chosen shipping method.
So, in the end the invoice should read:
Code: Select all
Invoice Nr.: 71595
Date: 21.04.2017
Payment Method: Cash
Shipping Method: Pickup From Storehouse
Can someone please guide me how to make this work?
Thank you!