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) »
  • Spacing between contribution amounts...
Pages: [1]

Author Topic: Spacing between contribution amounts...  (Read 686 times)

orthodoxkohen

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 2
Spacing between contribution amounts...
November 22, 2009, 06:12:56 am
Is there an easy way to place a separator between two contribution amounts, for example I have the following

Donation Amount Ticket Included
Donation Amount Ticket Included
Donation Amount Ticket Included
Ticket for 1
Ticket for 2

I'd like to put a spacer or line break between the first 3 and last two.

Thanks,

Bryan

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: Spacing between contribution amounts...
November 22, 2009, 08:17:04 am

your best bet would be to modify the code here:

CRM/Contribute/Form/Contribution/Main.php

function buildAmount, the line

Code: [Select]
                $this->addGroup( $elements, 'amount', $title, '<br />' );

to

Code: [Select]
                $this->addGroup( $elements, 'amount', $title, array( '<br />', '<br />', '<br /><br />', '<br />' );

the above line appears twice in conditionals, so make changes to both. You can send in different spacing parameters

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Spacing between contribution amounts...

This forum was archived on 2017-11-26.