0
I'm trying to get the method of payment to occur in the payment section of the invoice?
See imagine below.
Thanks.
See imagine below.
Thanks.
Responses (2)
-
Accepted Answer
0you need to make this new token "taken into account" by the template renderer, that file I already pointed you to, /views/invoice/tmpl/default.php
let me know!-
ken_trenholmmore than a month agoWould you mind explaining how to make a new token using this file?
Thank you.
-
-
Accepted Answer
0sure.. just go to to line 121 approx, and see the arrays "search" and "replace". you need to place yours there.-
ken_trenholmmore than a month agoI added "{payment_type}" to line 121
I added $payment_type to line 138
but it is not working. I must be missing something. Does the order matter? -
Germinal Campsmore than a month agoyes, the order matters! :) put it at the end of both arrays.
-
Germinal Campsmore than a month agoand by the way, you must use $payment->payment_type, not $payment_type.
Even better, use JText::_($payment->payment_type) for correct display -
ken_trenholmmore than a month agoYou are a genius! It worked great. Thanks
-
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »