New answers tagged

0

Can you check Check if base url in civicrm.settings.php file is set 'http://remotedomain.com/'. Try setting home and siteurl in wp_options table to 'http://remotedomain.com/' (not needed for normal install). Cheers Pradeep


2

There is now an extension for EventBrite integration.


0

Each contribution should have one or more payments. When you are creating contribution using contribution api with completed status a payment is recorded automatically. If you creating contribution with pending status eg incase of check payments then when you receive payment from bank you use payment api to record payment for the pending contribution In ...


0

"content" needs to be a string if using that - it represents the actual attachment contents. What you probably want is the move-file one. If you're at /civicrm/api in the explorer click on the Code Docs tab at the top and pick Attachment for the Entity, then at the bottom of the text that appears is an example, just yours is slightly different since it's a ...


0

the way the api works now, the thing returned is an ArrayObject which you can call functions on, one of those is count() so just count the results; and then loop over them as you would if it was a normal array if (count($results) != 0) { foreach ($results as $result) { do things } }


1

It looks like you're doing this via REST. The API explorer gives this: https://dmaster.demo.civicrm.org/sites/all/modules/civicrm/extern/rest.php?entity=Activity&action=get&api_key=userkey&key=sitekey&json={"sequential":1,"id":123,"options":{"limit":1}} If you explain more about what you are trying to do you may get better answers.


1

The last one look OK to me, the JSON parameter AFAIK is there just so I get the results in JSON format rather than XML format. But are you doing your api call with the REST, in Javascript or in PHP? And did you check the API chapter in the Developer Guide? It can be found here: https://docs.civicrm.org/dev/en/latest/api/


2

Based on Erik's help, this is how I've dealt with my need: When a new membership is manually checked and validated (for some legal issue), the team in charge of this task adds the member to a previously created dynamic group (sub group to membership called "validated membership") using CiviRules, the new "validated" member automatically receives an email ...


2

Do I gather correctly you want to do this in many cases? The easiest option would then be to use the CiviRules extension to send the PDF so you do not have to code. You could then set up something like if a membership of a certain type is added, send the PDF. That would make more sense to me then trying to add it to a template? I do not think that route ...


Top 50 recent answers are included