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) »
  • Remove Billing Form from contribution page.
Pages: [1]

Author Topic: Remove Billing Form from contribution page.  (Read 887 times)

zafar

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Remove Billing Form from contribution page.
April 26, 2012, 12:43:12 am
How can i delete/remove the (Billing Name and Address) from my donation form?
By removing lines of code from file  (civicrm\CRM\Core\Payment\Form.php) Where the form is generating.
Or by removing lines of code from file  (civicrm\templates\CRM\Core\BillingBlock.tpl) Where form is printing.
The form get disappear BUT
when i submit the form it says : Country and state fields are required.
What i want is, to remove this form and when i submit the donation form, it didn't ask me for country and state or any Billing form field.

In short, I don't wan't (Billing Name and Address) Form.

Thanks in advance  ;)
« Last Edit: April 26, 2012, 04:22:35 am by zafar »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Remove Billing Form from contribution page.
April 26, 2012, 03:02:49 am
I don't understand your question, but if for some reason you actually do want to hide that form, you could hide it with jQuery (or CSS) and also populate it with default values so that it validates.

But I don't see how you could have a donation with billing information.
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.

zafar

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: Remove Billing Form from contribution page.
April 26, 2012, 04:21:30 am
Thanks Hershel for your reply.
But i don't wan't to go for Javascsript/jQuery.
I want to hide it from civiCRM files.
 
I also clear my question above.now you may get what i want.

Thanks again :)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Remove Billing Form from contribution page.
April 26, 2012, 01:07:18 pm
also not quite following your question and if you can explain the purpose we may help.
if you are not wanting people to have to 'pay' on a contribution form, you could set it to 'pay later' and then hide that - would that work?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Remove Billing Form from contribution page.

This forum was archived on 2017-11-26.