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 information block not displayed in case of new payment processor
Pages: [1]

Author Topic: BIlling information block not displayed in case of new payment processor  (Read 1226 times)

ashok

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
BIlling information block not displayed in case of new payment processor
February 11, 2014, 09:11:51 pm
Hi,

I am integrating CCAvenue payment gateway with my site. It is working fine but the thing is when I select it from available payment gateways, Billing information block is not displayed. Is it supposed to happen this way or there could be some issue with the payment gateway implementation? I am using the Notify method.

Any help much appreciated.

Thanks,
Negi
« Last Edit: February 11, 2014, 10:03:24 pm by ashok »

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 12, 2014, 05:13:32 am
Hi Negi

For the billing information fields to appear the payment processor type's 'billing_mode' should be 3.

If you check your payment processor type record in 'civicrm_payment_processor_type' database table, the 'billing_mode' value should be 3, if you want the billing information fields to appear in the online contribution/event forms.

Hope this helps.

- Rajesh


ashok

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 12, 2014, 09:03:12 pm
Hi Rajesh,

Thanks for the reply.

You are right that billing block appears in case of 'billing_mode' = 3.
However if I want the billing block to appear on donation page on my site in case of 'billing_mode' =4, how do I do that? My requirement is such that I have to collect billing info from donors on my site itself.

Thanks,
Negi

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 13, 2014, 02:34:39 am
Hi Ashok

Billing mode 3 is on-site payment, where we collect credit card and billing information and process the payment in background, without redirect the user to the payment gateway, hence we need the billing fields. But Billing mode 4 is off-site payment, where we redirect the user to the payment gateway and the user enters their credit card and billing information in payment gateway website, so there is no need for CiviCRM to display Billing information block for off-site payment processor types.

If you want to have the billing block anyway for off-site payment processor types, you can create a profile and include the address fields of type 'Billing' and include the profile in online contribution/event pages. When redirecting the user to the payment gateway, you can pass the billing information collected using the profile.

Hope this makes sense.

- Rajesh

ashok

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 13, 2014, 10:13:40 pm
Thanks Rajesh.
A profile should do the job for me.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: BIlling information block not displayed in case of new payment processor
February 19, 2014, 07:33:19 am
Rajesh -

Is there a way to get the billing block and credit card fields to appear at the very bottom of the Registration form? right now it's in the middle between my Top of Page and Bottom of Page profiles. It's going to be confusing for the administrative assistants that are registering office staff members.

Thanks in advance,
Barbara


Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 19, 2014, 08:19:44 am
HI Barbara

Yes you can. But you need to copy the template file (templates\CRM\Event\Form\Registration\Register.tpl) to custom templates directory and modify it to acheive the desired result.

After copying 'templates\CRM\Event\Form\Registration\Register.tpl' to the custom templates directory, you need to move the line
Code: [Select]
{include file="CRM/UF/Form/Block.tpl" fields=$customPost} next to
Code: [Select]
{include file="CRM/UF/Form/Block.tpl" fields=$customPre} in the template file.

Hope this helps.

- Rajesh

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: BIlling information block not displayed in case of new payment processor
February 19, 2014, 12:31:02 pm
Thank you very much, Rajesh. I'll post back if I have any problems.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: BIlling information block not displayed in case of new payment processor
February 19, 2014, 12:41:57 pm
Rajesh,

I thought I understood what you meant by 'next to', but I guess I didn't because it's not working. Could you be more specific, please?

Thank you.

Quote from: Rajesh on February 19, 2014, 08:19:44 am
HI Barbara

Yes you can. But you need to copy the template file (templates\CRM\Event\Form\Registration\Register.tpl) to custom templates directory and modify it to acheive the desired result.

After copying 'templates\CRM\Event\Form\Registration\Register.tpl' to the custom templates directory, you need to move the line
Code: [Select]
{include file="CRM/UF/Form/Block.tpl" fields=$customPost} next to
Code: [Select]
{include file="CRM/UF/Form/Block.tpl" fields=$customPre} in the template file.

Hope this helps.

- Rajesh

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: BIlling information block not displayed in case of new payment processor
February 20, 2014, 02:05:45 am
Barbara,

Original 'Register.tpl' will have the below code around Line no. 140

Code: [Select]
   {* User account registration option. Displays if enabled for one of the profiles on this page. *}
    {include file="CRM/common/CMSUser.tpl"}

    {include file="CRM/UF/Form/Block.tpl" fields=$customPre}

    {if $form.payment_processor.label}
      <fieldset class="crm-group payment_options-group" style="display:none;">
        <legend>{ts}Payment Options{/ts}</legend>
        <div class="crm-section payment_processor-section">
          <div class="label">{$form.payment_processor.label}</div>
          <div class="content">{$form.payment_processor.html}</div>
          <div class="clear"></div>
        </div>
      </fieldset>
    {/if}

    <div id="billing-payment-block">
      {* If we have a payment processor, load it - otherwise it happens via ajax *}
      {if $ppType}
        {include file="CRM/Event/Form/Registration/Register.tpl" snippet=4}
      {/if}
    </div>
    {include file="CRM/common/paymentBlock.tpl"}

    {include file="CRM/UF/Form/Block.tpl" fields=$customPost}

    {if $isCaptcha}
      {include file='CRM/common/ReCAPTCHA.tpl'}
    {/if}

You should move line {include file="CRM/UF/Form/Block.tpl" fields=$customPost} next to {include file="CRM/UF/Form/Block.tpl" fields=$customPre}. You modified file should be like

Code: [Select]
   {* User account registration option. Displays if enabled for one of the profiles on this page. *}
    {include file="CRM/common/CMSUser.tpl"}

    {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
   
    {include file="CRM/UF/Form/Block.tpl" fields=$customPost}

    {if $form.payment_processor.label}
      <fieldset class="crm-group payment_options-group" style="display:none;">
        <legend>{ts}Payment Options{/ts}</legend>
        <div class="crm-section payment_processor-section">
          <div class="label">{$form.payment_processor.label}</div>
          <div class="content">{$form.payment_processor.html}</div>
          <div class="clear"></div>
        </div>
      </fieldset>
    {/if}

    <div id="billing-payment-block">
      {* If we have a payment processor, load it - otherwise it happens via ajax *}
      {if $ppType}
        {include file="CRM/Event/Form/Registration/Register.tpl" snippet=4}
      {/if}
    </div>
    {include file="CRM/common/paymentBlock.tpl"}

    {if $isCaptcha}
      {include file='CRM/common/ReCAPTCHA.tpl'}
    {/if}

Does this make sense?

- Rajesh

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: BIlling information block not displayed in case of new payment processor
February 20, 2014, 09:15:28 am
Yeah, that's what I did and nothing changed with the layout of the form. I'll give it another go and verify that the custom template directory is set correctly in the settings files.

Thanks, Rajesh.


UPDATE: had one of those 'oh duh' moments. I hadn't replicated the directory structure of the original template location. Did that. It now works. Thank you SO very much.
« Last Edit: February 20, 2014, 09:24:57 am by penguintrax »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • BIlling information block not displayed in case of new payment processor

This forum was archived on 2017-11-26.