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 CiviMail (Moderator: Piotr Szotkowski) »
  • trying to display contribution $receive_date in contribution receipt mail fails
Pages: [1]

Author Topic: trying to display contribution $receive_date in contribution receipt mail fails  (Read 1806 times)

digitracer

  • Guest
trying to display contribution $receive_date in contribution receipt mail fails
November 04, 2010, 01:48:30 pm
I am desperately trying to make this string {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br /> taken from tankyou.tpl display the contribution create date within the contributions_receipt (online) email (template), but it doesnt work at all.
Am I doing anything wrong here since the underlying function is public and putting in the onbehalf name and adress variables do work without problems.
Could anyone step down to help me in that case since sending out a confirmation receipt without the corresponding date of creation is quite pathetic.
p.s: trying to use $created_date did also fail.

Many, many thanks,
digitracer

Edit: I just noticed that the contributions_receipt (online) email template per default includes $receive_date further down the lines already (within an if clause) so that it should show up in my case since this date is being displayed at the online confimation messages. Could it be a bug or am I missing something here?
« Last Edit: November 04, 2010, 03:03:57 pm by digitracer »

digitracer

  • Guest
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 05, 2010, 02:01:48 am
I just tried to reproduce the isuue on the demo server but there no email is being sent after filling out the contribution form which can be accessed via this link:
http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=4

Any help on this matter would be warmly appreciated.

Thanks a lot,
digitracer

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 05, 2010, 02:33:33 am
Hi,

The demo doesn't send emails indeed (for obvious spam protection)

Try adding {debug} at the top of your template , it should dump all the available variables in your template (should work for email templates as well, never tried)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

digitracer

  • Guest
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 05, 2010, 01:30:05 pm
Hi Xavier,

thanks for responding. I've put debug to top of the header section then into the header section and finally on top of the body part of the eamil template but I can't find info about variables. Is there a specific place where I have to look for the dump?

Sorry for bothering,
digi

digitracer

  • Guest
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 06, 2010, 04:10:38 am
I found this thread http://forum.civicrm.org/index.php/topic,15300.0.html were it is said that "received_date" is off due to a bug. Can anyone plaese confirm that this bug is still to work on, so that I no longer have to search and wait for any short term solution! On the release notes of 3.2.4 I could not find any word about it.

We started with civi half a year ago collecting a bigger user base since and we found that civi has a huge potential and scope in serving to our needs. Now that we want to get deeper into civi, wherever we go we get stuck in the mud. Thats no more fun to be honest. So could someone please take care about the nitty gritty details telling me how to get a date displayed on an email contribution receipt/invoice! ???

Thanks in advance,
digi

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 06, 2010, 04:32:18 am
Quote from: digitracer on November 06, 2010, 04:10:38 am
I found this thread http://forum.civicrm.org/index.php/topic,15300.0.html were it is said that "received_date" is off due to a bug. Can anyone plaese confirm that this bug is still to work on, so that I no longer have to search and wait for any short term solution! On the release notes of 3.2.4 I could not find any word about it.

http://issues.civicrm.org/jira/browse/CRM-6725
As written, it's been fixed on the 3.2.3

Quote from: digitracer on November 06, 2010, 04:10:38 am
We started with civi half a year ago collecting a bigger user base since and we found that civi has a huge potential and scope in serving to our needs. Now that we want to get deeper into civi, wherever we go we get stuck in the mud. Thats no more fun to be honest.

Glad you find civi covering most of your needs. Believe me, I understand your frustration, learning a new complex software is not a simple task and can be frustrating at times ;)

Quote from: digitracer on November 06, 2010, 04:10:38 am
So could someone please take care about the nitty gritty details telling me how to get a date displayed on an email contribution receipt/invoice! ???

If you want someone to take care about the nitty gritty details, I would suggest you to contact providers http://civicrm.org/professional and pay them for that service.

In general with any big IT project (and a CRM definitely is a big IT project) you will have customisations that won't be out of the box , you should plan for time to be spend on the learning curve or budget to buy external expertise or a mix of both.

Happy customisation!

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

digitracer

  • Guest
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 06, 2010, 10:49:18 am
I thought that these comments would come, but you are not hitting the point.

The point here is that the variable we are talking about the whole time has been put into that template by default, is showing up online properly but no longer via the email template.

I don't think that it is up to us users to fix this issue. And I am not alone with this problem since others have already asking for a token for "current date".

And if civi advertisements are telling about automatik mailing of contribution receipts, I think one can expect that a date is incuded in such kind of mails.

I really appreciate the developers hard work on civicrm and what has been achieved, but if you are telling that not out of the box means that one has to hack the given code wherever you want to achieve what can be expected from an application like civi, I don't agree with you.

But now instead of focussing to solve a problem I am shure all other users will have as well we are talking about where user support begins or ends.

Taking about professional providers is kind of ironic for a project like ours where we try to help pupils to attend free of charge mentoring programs for which we ourselves are looking for funding with the use of civicrm.

So if we cannot expect that little help here in this forum how can we ask for support from providers.

digi

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: trying to display contribution $receive_date in contribution receipt mail fails
November 06, 2010, 12:29:40 pm

1. what version are you on. Can you upgrade to the latest version and check. I do think this works in most cases (however i could not find a recent contribution receipt, but will double check soon). I decided to donate and test, here is what i see in my email receipt:

Contribution Information
Amount    $ 12.00
Date    November 6th, 2010 12:21 PM

So seems like it does work in 3.2.3

2. Just a clarification on a couple of statements u've made:

Quote from: digitracer on November 06, 2010, 10:49:18 am
I don't think that it is up to us users to fix this issue. And I am not alone with this problem since others have already asking for a token for "current date".

The "current date" token is a feature request. we've pointed folks to the right places for documentation. Expecting someone "else" to implement a feature request is not the way open source works. The typical mantra is: "scratch your own itch" and share your solution with other folks. This is also true for bugs. It does help everyone if people can investigate and figure out what the root cause of bugs are and provide patches.

Quote from: digitracer on November 06, 2010, 10:49:18 am
And if civi advertisements are telling about automatik mailing of contribution receipts, I think one can expect that a date is incuded in such kind of mails.

CiviCRM is software. Software has bugs. We need to deal with this fact :)

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

digitracer

  • Guest
Re: trying to display contribution $receive_date in contribution receipt mail fails
November 06, 2010, 03:01:51 pm
Lobo,

thanks so much for taking care. Don't quite know how to respond.

As to your test: this is exactly what I get displayed as confirmation on screen. At our corresponding email the date information line is simply missing. Got lost on the way. I have tested all the other date variables as well and set up a new contribution includin membership. There the dates are also missing - even online. We have updated on 3.2.3 just recently and tested the contributions on on two independent installations.

If you say, that you get that date line on the email confirmation the problem looks like most likely to be found somewhere in our civi installations, but that would be beyond my horizon.

The only problem is that fundraising in Germany with such kind of receipts would end up in endless complaints an just one time contributions.

Don't know what to do now.

Hans.S

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
Re: trying to display contribution $receive_date in contribution receipt mail fails
February 07, 2011, 12:52:21 pm
http://www.smarty.net/docsv2/en/language.modifier.date.format.tpl

Insert {$smarty.now|date_format} where you want the current date.

There are also options to format the date.

It worked for me.
« Last Edit: February 09, 2011, 06:57:44 am by Hans.S »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • trying to display contribution $receive_date in contribution receipt mail fails

This forum was archived on 2017-11-26.