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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Pay later radio not visible
Pages: [1]

Author Topic: Pay later radio not visible  (Read 595 times)

haro

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.2 for d6 and 4.4 for d7
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.5
  • PHP version: 5.3
Pay later radio not visible
June 20, 2014, 01:52:44 am
Hi,

I have problems with the payments for events. When the "pay later" option is set, the "Payment Method" fieldset with the Payment processor and Pay later text radios is not there. So on the next page there is an error "Payment Method is a required field" because the user cannot set these options due to the missing radios.

When I do dpr($this) inside buildQuickForm in CRM/Event/Form/Registration/Register.php I can see it is available inside the form, so where can it then be removed again? What comes after CRM_Core_Payment_ProcessorForm::buildQuickForm($this) or could influence this?

Code: [Select]
[15] => HTML_QuickForm_group Object
                (
                    [_name] => payment_processor
                    [_elements] => Array
                        (
                            [0] => HTML_QuickForm_radio Object
                                (
                                    [_text] => paypal
                                    [_label] =>
                                    [_type] => radio
                                    [_flagFrozen] =>
                                    [_persistantFreeze] => 1
                                    [_attributes] => Array
                                        (
                                            [value] => 14
                                            [type] => radio
                                            [id] => CIVICRM_QFID_14_4
                                            [name] =>
                                        )

                                    [_tabOffset] => 0
                                    [_tab] =>
                                    [_lineEnd] =>

                                    [_comment] =>
                                )

                            [1] => HTML_QuickForm_radio Object
                                (
                                    [_text] => I will send payment by check
                                    [_label] =>
                                    [_type] => radio
                                    [_flagFrozen] =>
                                    [_persistantFreeze] => 1
                                    [_attributes] => Array
                                        (
                                            [value] => 0
                                            [type] => radio
                                            [id] => CIVICRM_QFID_0_6
                                            [name] =>
                                        )

                                    [_tabOffset] => 0
                                    [_tab] =>
                                    [_lineEnd] =>

                                    [_comment] =>
                                )

                        )

                    [_separator] =>  
                    [_required] => Array
                        (
                        )

                    [_appendName] => 1
                    [_label] => Payment Method
                    [_type] => group
                    [_flagFrozen] =>
                    [_persistantFreeze] =>
                    [_attributes] =>
                    [_tabOffset] => 0
                    [_tab] =>
                    [_lineEnd] =>

                    [_comment] =>
                )


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Pay later radio not visible
June 20, 2014, 03:28:22 am
Is this field definitely not in the HTML? Perhaps it is and your CSS is hiding it?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

haro

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.2 for d6 and 4.4 for d7
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Pay later radio not visible
June 20, 2014, 06:41:57 am
Thanks Hershel for your reply. No, unfortunately not, when I check the html it's not there. When I disable css and js with webdeveloper toolbar its not there, it's also not visible when I look with firebug. So it must be some php hook that comes after and removes it I think. But I don't know which one comes later than buildQuickForm. Really stuck on this...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Pay later radio not visible
June 20, 2014, 06:43:26 am
Do you have any custom PHP or custom templates? Do you have any extensions installed?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

haro

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.2 for d6 and 4.4 for d7
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Pay later radio not visible
June 20, 2014, 08:32:19 am
I have removed all custom php and uninstalled all extensions for testing. I also removed all Drupal modules and put in place a default civicrm codebase, cleared all possible caches (http://forum.civicrm.org/index.php/topic,23637.msg141266.html#msg141266).

It works perfectly on a fresh civicrm installation with the same codebase, so I think it is something in the database that triggers it. The site has been upgraded from 3.4 to 4.2.16 and is a bilingual site (french/english fields).

I also had a problem with getting the payment processor being set and could fix this with http://forum.civicrm.org/index.php/topic,26696.msg115806.html#msg115806, but this does not work anymore when the "pay later" option is checked.

Still searching what would override the buildQuickForm.

haro

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.2 for d6 and 4.4 for d7
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Pay later radio not visible
June 23, 2014, 11:44:58 am
Hi Hershel,

You were right anyway: there were still some custom templates active that had not been upgraded from 344 to 4216.

I did not build the original installation and thought that by disabling the Drupal theme all files in it would not have any effect but the Custom Templates directory in civicrm/admin/setting/path was still pointing at a folder with Civicrm specific templates inside that inactive Drupal theme so those files were active anyway.

Thanks for pointing me in the right direction!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Pay later radio not visible

This forum was archived on 2017-11-26.