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) »
  • OneClick still available?
Pages: [1]

Author Topic: OneClick still available?  (Read 479 times)

norris

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla
  • MySQL version: 5.5.41-37.0-log
  • PHP version: 5.4.24
OneClick still available?
March 18, 2015, 12:41:07 am
I'm implementing CiviCRM for an organization that already has a nice donation page set up, complete with multilingual translations.  I don't want to have to replace that with CiviCRM generated forms.

I found several mentions of the Single Click method using the OneClick.php and OneClick.class.php files, at https://wiki.creativecommons.org/OneClickDonate.php

But the links from that write-up to the OneClick code are broken, and I can't find the files anywhere else.  Unless there's something integrated now, or unless it's known that OneClick doesn't work with the current CiviCRM, can someone send me or point me to the files?  Thanks!

norris

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla
  • MySQL version: 5.5.41-37.0-log
  • PHP version: 5.4.24
Re: OneClick still available?
April 15, 2015, 04:59:35 pm
I had no success tracking down OneClick, so I wound up using alterContent hook to reformat the Civi generated Contribution form and insert it into the appropriate area in our existing donation page:

  • Alter $content to make the Contribution form nicer - add a placeholder for "Other Amount" box and convert the radio select of amounts to a dropdown select
  • Do database calls to Joomla modules containing translations of phrases like "Other Amount" and "Email address" and "Donate this amount every month".  Replace the english versions with the translations.  (This is necessary because we have logging enabled, and apparently can't use Civic's multi-language as well as logging.)
  • Fetch the original donation page in the appropriate language.  Put the $content into the appropriate spot, and set $content to the full page content
  • Some css to hide labels, style the Contribution button, and so on.

I expect a lot of this code to break if the Contribution form layout changes in the future, but it was the best way I could find to get Paypal payments automatically into Civi while preserving our existing donation page and translations.  I can provide more details if anyone needs them.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • OneClick still available?

This forum was archived on 2017-11-26.