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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Event Registration Form Woes
Pages: [1]

Author Topic: Event Registration Form Woes  (Read 1791 times)

obsreq

  • Guest
Event Registration Form Woes
November 03, 2009, 04:52:22 pm
My company recently received a new client who utilizes Drupal and CiviCRM for their CMS and Events.  I managed to get the database transferred over, and everything appears to be working in good order.  However, when going to the Event Registration Form, it asks for an expiration date for the credit card the user is using.  However, the only field that appears is the year, and the user can never progress against this screen.  Anyone know what's up?

And yes, I've cleared the cache, Config.IDS.ini, re-run setup, etc, etc.  Running 2.2.7.  I'm aware 3.0 is out, but I'd like to resolve this issue before I even attempt upgrading the system.  MySQL and PHP are up to date.

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: Event Registration Form Woes
November 03, 2009, 07:31:37 pm

check the advanced date settings screen:

http://drupal.demo.civicrm.org/civicrm/admin/setting/preferences/date?reset=1

in specific the value for creditCard. Should be "M Y"

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

obsreq

  • Guest
Re: Event Registration Form Woes
November 04, 2009, 06:03:03 am
Thanks for the quick help.

"M Y" was the current setting.  Looking at the source of the page, there are two   before the year dropdown box... but no month dropdown.

If it helps any, when trying to submit the date, the validation requirement still says "Expiration can not be a date in the past", despite setting the year to 2010, 2011, etc.

Any other ideas?

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: Event Registration Form Woes
November 04, 2009, 06:20:03 am

if u r familiar with PHP, can you add some debugging statements to:

CRM/Core/Payment/Form.php, function buildCreditCard

and check the attributes and what form element is built for the 'credit_card_exp_date' field

You can ping us on IRC and we can help u thru it.

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

obsreq

  • Guest
Re: Event Registration Form Woes
November 04, 2009, 06:53:51 am
Code: [Select]
        $form->_fields['credit_card_exp_date'] = array( 'htmlType'   => 'date',
                                                        'name'       => 'credit_card_exp_date',
                                                        'title'      => ts('Expiration Date'),
                                                        'cc_field'   => true,
                                                        'attributes' => CRM_Core_SelectValues::date( 'creditCard' ),
                                                        'is_required'=> true );

Is what I found for the 'credit_card_exp_date'.  buildCreditCard looks like it only adds validation rules.

obsreq

  • Guest
Re: Event Registration Form Woes
November 04, 2009, 09:01:18 am
config_backend somehow got erased.  Rebuilt it and everything is running great.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Event Registration Form Woes

This forum was archived on 2017-11-26.