CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Need "Billing OR Main Address" to be displayed in offline receipts.
Pages: [1]

Author Topic: Need "Billing OR Main Address" to be displayed in offline receipts.  (Read 471 times)

clarkstacer

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Joomla 2.5.7
  • MySQL version: don't know
  • PHP version: don't know
Need "Billing OR Main Address" to be displayed in offline receipts.
November 26, 2012, 02:38:54 pm

Our client is requiring us to email an address in each receipt, regardless of online or offline.  They want it to be the Billing Address, or if there is no billing address, use the Main Address.

I found the spot in the workflow tpl where billing address is shown, but I'm not sure how to get the Main address to show there "only if" there is no billing address.

I was looking to override the Contribute_Form_AdditionalInfo.php (around line 374) and force the Main address to come through if there was no billing address.  Does anyone have an example of grabbing the Main address from either the tpl file or from the Contribute_Form_AdditionalInfo.php?

Or, is there a better way to do this?

Using: Joomla 2.5.7, CiviCRM 4.2.6

Thank you,
Clark





Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Need "Billing OR Main Address" to be displayed in offline receipts.
November 26, 2012, 05:41:31 pm
Maybe start by add {debug} to the System Message Template for offline contribution receipts to see what variables / values are already available to the message template.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Need "Billing OR Main Address" to be displayed in offline receipts.

This forum was archived on 2017-11-26.