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 CiviMember (Moderator: Deepak Srivastava) »
  • conditional, different membership receipt based on membership purchased?
Pages: [1]

Author Topic: conditional, different membership receipt based on membership purchased?  (Read 1227 times)

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
conditional, different membership receipt based on membership purchased?
April 07, 2011, 01:09:45 am
When a membership is purchased it is possible to have a conditional section to the email receipt and/or thank you page, depending on which type of membership was purchased?  I searched around for this on the forums but didn't find something.

Would it be as easy as using some kind of token and a Smarty {if} tag, or would I need to edit the PHP files and put the conditional in there?

Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: conditional, different membership receipt based on membership purchased?
April 07, 2011, 09:54:16 am

you should be able to this in smarty using a conditional tag {if ...}

i suspect the membership type as text is exposed to the template and even the id might be exposed

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

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: conditional, different membership receipt based on membership purchased?
April 09, 2011, 08:40:14 pm
Thanks Lobo.

$membership_name works as a Smarty tag in the
http://YOUR-SITE.org/civicrm/admin/messageTemplates?selectedChild=workflow&reset=1
outgoing message for Memberships - Receipt (on-line)

Here is example for everyone else
Code: [Select]
{if $membership_name EQ "Platinum Plus"} Thank you for buying the {$membership_name} membership.  Here is a bunch of custom text for you. {/if}
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • conditional, different membership receipt based on membership purchased?

This forum was archived on 2017-11-26.