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) »
  • Member / non member event pricing
Pages: [1]

Author Topic: Member / non member event pricing  (Read 504 times)

TimG

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.4.23
Member / non member event pricing
September 18, 2012, 09:29:05 am
I can't find a definitive Joomla answer to this - how do I set event pricing so that if someone is logged on they see a different price to a non-registered person? All the answers so far seem to be Drupal

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Member / non member event pricing
September 21, 2012, 12:10:57 pm
You can accomplish this with jQuery, but it is dependent on your user enabling Javascript in their browser, which approximately 2% of the population do not.  Therefore it is not a 100% sure way to do this.

1. Give your event two prices.
2. Create some jQuery using the hide() method that hides the member price only if someone is not logged in.  Please this jQuery in your template or in a module, so that it is shown only to not-logged-in people
3. repeat #2 in reverse, hiding the non-member price for people who ARE logged in

I don't work in Joomla much so don't have the exact code for you, but that is theoretically how it can work
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Member / non member event pricing
September 23, 2012, 12:49:32 pm
You could also use PHP to filter the price set in a customized template.
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) »
  • Member / non member event pricing

This forum was archived on 2017-11-26.