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 CiviEvent (Moderator: Yashodha Chaku) »
  • Discount Prices in CiviCRM 2.0.7
Pages: [1]

Author Topic: Discount Prices in CiviCRM 2.0.7  (Read 1168 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Discount Prices in CiviCRM 2.0.7
January 25, 2009, 06:36:05 am
I have a Drupal 5 CiviCRM 2.0.7 site where we want to offer a discount price to events to certain select customers. I am not finding a way natively to accomplish this, and so my proposed solution would be to have a special price set field with a negative value. We would HIDE that field for regular users using CSS and then give the special "discount" clients a unique link, with an appended variable in the URL, that would trigger a bit of jQuery code which would reveal (and check off) that field.

Are there any better suggestions?
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.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Discount Prices in CiviCRM 2.0.7
January 27, 2009, 01:05:26 am
I will take the lack of better suggestions to mean:

"Your jQuery solution sounds reasonable."

Thank you.
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.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Discount Prices in CiviCRM 2.0.7
January 27, 2009, 10:32:49 am
Looking ahead ... 2.2 includes a buildAmount hook which allows you (in a separate Drupal module) to modify the price array based on any conditions you can detect programmatically (e.g. user role, CiviMember membership, etc.).
Protect your investment in CiviCRM by  becoming a Member!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Discount Prices in CiviCRM 2.0.7
January 27, 2009, 10:36:05 am
Now that sounds excellent. I will change the implicit answer to:

"Your jQuery solution sounds reasonable, for the time being."

:)

Thanks
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Discount Prices in CiviCRM 2.0.7

This forum was archived on 2017-11-26.