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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Auto show premiums in civicontribute page
Pages: [1]

Author Topic: Auto show premiums in civicontribute page  (Read 759 times)

nsummy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.07
  • CMS version: Drupal 7
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Auto show premiums in civicontribute page
December 28, 2011, 06:43:34 pm
Our site has multiple donation levels and a premium level to correspond to each one.  It would be nice to have only the corresponding premium level show up once the donation level radio box is selected.  Right now all premium levels are shown in a list and it looks confusing.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Auto show premiums in civicontribute page
December 31, 2011, 08:45:10 am
You may be able to do this by adding a jQuery snippet to the template. If the markup for each premium isn't distinct enough to make this easy - you could put together a patch to improve the markup.

Check out this post for info on a simple way to add jQuery:
http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates

.. and background info here:
http://book.civicrm.org/developer/techniques/templates
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Auto show premiums in civicontribute page

This forum was archived on 2017-11-26.