Does anyone have a solution to using Entity Tokens with Community Accounting?

In 7.x-3.x (sorry, I cannot identify the exact version currently installed, probably 7.x-3.3), Entity Tokens breaks the Worth field in forms, emails, etc. Is it fixed in the latest 7.x-3.8?

Entity Tokens is required by MailChimp and Rules, both of which I'd like to implement on our site. I'm not a php programmer.

* implements hook_requirements
* really sorry but I couldn't get entity tokens to work properly with the worth field
*/
function mcapi_requirements($phase) {
if ($phase != 'update') {
// Ensure translations don't break at install time
if (module_exists('entity_token')) {
return array('mcapi' => array(
'title' => t('Community Accounting'),
'value' => t("'Entity tokens' module has a longstanding issue and will only render the worth field as separate properties, currcode, and quantity"),
'severity' => REQUIREMENT_WARNING,
));
}
}
return array();
}

Comments

scass created an issue. See original summary.

matslats’s picture

Steve we could always hope the problem, is fixed. It was a long time ago.
If you comment out function mcapi_requirements() and proceed as normal who knows all might be well.
You might want to consider a d8 upgrade sooner rather than later. This module has been ahead of the curve, and there is also a hamlets distro in beta http://drupal.org/project/cforge ask me if you want help to set up your first d8
Mailchimp for d8 is in alpha
Mcapi will fully support rules in d8 as well although rules isn't built yet

scass’s picture

Thanks for responding, Matslats.

The problem definitely exists in our version of mutual credit. I don't know which version it is – doesn't seem to be documented within the module files. Probably 7.x-3.2 or so.

My present task is simply to get some kind of mass email system working, and mailchimp looked ideal. But unfortunately it breaks too much (second part of transaction forms; transaction emails).

I suspect upgrading to 7.x-3.8 would take considerable effort. I'd be happy to do it if I knew this issue was fixed. Otherwise, we have no real need. Everything is working fine for us otherwise.

I don't feel a pressing need to move to D8. We have a settled system for which the main priority is building the community rather than being leading edge, technology-wise.

matslats’s picture

You should probably upgrade mutual_credit to the latest version. It shouldn't break anything.
However I don't believe that will fix the problem.
If I recall correctly, without the entity tokens problem I didn't know to expose the field, so I didn't.
That means even if entity tokens is fixed, mutual credit won't work with it.
I'll try to find time to look at it again, but not immediately

matslats’s picture

Status: Active » Closed (won't fix)

Sorry there's nothing I can do to get it to work with entity tokens.
You'll need to find some other mail solution.
Will this do?
https://www.drupal.org/project/mass_contact