0
I'm trying to get the method of payment to occur in the payment section of the invoice?

See imagine below.

Thanks.
Attachments:
Responses (2)
  • Accepted Answer

    Thursday, January 30 2014, 05:04 PM - #Permalink
    0
    you 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_trenholm
      more than a month ago
      Would you mind explaining how to make a new token using this file?

      Thank you.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, January 31 2014, 12:06 PM - #Permalink
    0
    sure.. just go to to line 121 approx, and see the arrays "search" and "replace". you need to place yours there.
    • ken_trenholm
      more than a month ago
      I 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 Camps
      more than a month ago
      yes, the order matters! :) put it at the end of both arrays.
    • Germinal Camps
      more than a month ago
      and by the way, you must use $payment->payment_type, not $payment_type.
      Even better, use JText::_($payment->payment_type) for correct display
    • ken_trenholm
      more than a month ago
      You are a genius! It worked great. Thanks
    The reply is currently minimized Show
Your Reply