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) »
  • Billing First and Last Name Changes CiviCRM Info
Pages: [1] 2

Author Topic: Billing First and Last Name Changes CiviCRM Info  (Read 8917 times)

Jerry

  • Guest
Billing First and Last Name Changes CiviCRM Info
June 29, 2007, 09:14:56 am
I'm not sure if this a but or a nice little feature.  When a user make a contribution and changes the first and last name for the billing information, it overwrites the first and last name of the contact.  This can pose a little bit of an issue if say:

1) The contributor is using a credit card from their boss / business.
2) The contributor's first/last name on the credit card is different than their preferred name.

The resolution to this issue would be to have separate billing contact information.

Thoughts?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Billing First and Last Name Changes CiviCRM Info
June 29, 2007, 10:13:24 am

I suspect we'll need to clean the below sometime in a 2.x release. We've already taken the right step for address and store it as billing, so we should probably do the same for name at some stage. The billing name is only copied if the profile does not include a first/last name, so one alternative might be to ensure that u do have a profile first/last name displayed on your contrib page

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

baito

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
July 03, 2007, 09:46:21 am
I've encountered this problem too and in my experience, even if you include a profile with first and last name on the contribution page, the values the user inputs there are still overwritten with the ones from billing (PayPal Website Payments Standard, in my case).

Any thoughts?

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Billing First and Last Name Changes CiviCRM Info
November 06, 2007, 02:34:10 pm
I've been noticing this as well, and I agree, the billing name should be separate from the account name.

Peace,
lpkb
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Billing First and Last Name Changes CiviCRM Info
January 13, 2008, 11:13:04 am
Has this been resolved or logged as an issue?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Billing First and Last Name Changes CiviCRM Info
January 14, 2008, 01:10:33 pm
This has been logged as an issue for 2.1 - http://issues.civicrm.org/jira/browse/CRM-2158
Protect your investment in CiviCRM by  becoming a Member!

yamba

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
February 03, 2008, 04:32:51 am
Hi,

Is there a place in the code that could be put in comments to skip the billing info stroring and the firstname/lastname overwriting?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Billing First and Last Name Changes CiviCRM Info
February 04, 2008, 02:11:36 am

I assume this is 1.9. You might want to experiment and tweak the code at:

CRM/Core/Payment/PayPalIPN.php, line 212 or so

Code: [Select]
        if ( ! empty( $params ) ) {
            // update contact record                                                                                         
            $idParams = array( 'id'         => $contactID,
                               'contact'    => $contactID );
            $ids = $defaults = array( );
            require_once "CRM/Contact/BAO/Contact.php";
            CRM_Contact_BAO_Contact::retrieve( $idParams, $defaults, $ids );
            $contact = CRM_Contact_BAO_Contact::createFlat($params, $ids );
        }

I suspect if u unset $params['first_name'] etc, it will have the desired effect.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

yamba

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
February 04, 2008, 04:55:03 pm
Thanks for the hint and I apologize for not specifying the version I use. Yes,  I use Drupal / CiviCRM 1.9.

For the payment processor, I use Moneris and I don't see contact information manipulation in the Moneris.php code.

The behavior I try to avoid is contact First Name Last Name being overwritten by billing info First and Last Names.

Previously, I tried to modify CRM\Contribute\Form\Contribution\Confirm.php  in the postProcess() function, but without success.  Was it the appropriate place?

Many Thanks

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Billing First and Last Name Changes CiviCRM Info
February 05, 2008, 06:26:04 pm

yes, thats an appropriate place. You'll have to modify the values you send into createProfileContact in that file at lines 338 and 342

If hacking php code is not your cup of tea (or coffee), you might want to contact someone from our professional services listing page (http://civicrm.org/professional/)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

yamba

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
February 06, 2008, 10:34:08 am
Those are the lines I've put in comments in my first attempt and it was still overwriting the first and last names.  I'll do more investigation to find the other places where the parameters could be passed...

Thanks for your assistance!

yamba

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
February 18, 2008, 05:40:02 am
For those who don't want a Billing Info profile overwriting the primary profile after an online contribution, here are the files that could be modified:

•   \registre\sites\all\modules\civicrm\templates\CRM\Contribute\Form\Offline.tpl
To modify the fields displayed for an online contribution (the name of the file is a bit confusion : )

•   \registre\sites\all\modules\civicrm\CRM\Core\Payment/Form.php
To modify the mandatory fields

•   \registre\sites\all\modules\civicrm\CRM\Contribute\Form/Offline.php
To block the creation of a billing info profile

crandell

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
August 08, 2008, 01:12:32 pm
I have this same issue in 1.9 with Authorize.net, but something I haven't seen anyone comment on is the billing email address.  I often have an assistant send payment for a contact,  and the assistant wants the email confirmation.  If I change the email address in the live Contribution form, it changes the primary email address for the contact.  But what's even more unexpected is that if the contact already has a Billing location with a different billing email address, the billing email address will show up on the Contribution form (which is expected), but then when I submit it, the billing email overwrites the primary email (not expected behavior).

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Billing First and Last Name Changes CiviCRM Info
August 08, 2008, 08:27:27 pm

If there is a primary email for the contact than overwriting is is definitely a bug. Can you reproduce this on our 2.1 sandbox (http://sandbox.civicrm.org/) and if so, file an issue

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

crandell

  • Guest
Re: Billing First and Last Name Changes CiviCRM Info
August 08, 2008, 10:03:53 pm
I tried to reproduce on the demo, but the test credit card info. didn't seem to work, and the bug only happens with Submit Credit Card Contribution. How do I do a test with the payment processor on there?

Thanks,
Lee

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Billing First and Last Name Changes CiviCRM Info

This forum was archived on 2017-11-26.