Hi folks.

Background:
I've set up a ruleset that is triggered by a rule (set on a timer). The ruleset contains 1 rule that has 3 actions. each action is sending a different email to a different person.

Problem:
I'm trying to access data from a global variable, and print it in one of the emails. This is how I'm trying to do it:

<?php global $dealer_details; ?>
<?php print $dealer_details[dealer_name]; ?> 
<?php print $dealer_details[dealer_street]; ?> 
<?php print $dealer_details[dealer_suburb]; ?>

Originally, I had set this particular email up as a triggered rule to send once a node of a particular content type was saved. I used the above code, and it seemed to work ok. However once I recreated the action within a rule set, it hasn't been printing the data above at all.

Any help would be really appreciated. Thanks alot! Great module by the way!

Comments

fago’s picture

Component: Rules Core » Rules Engine

perhaps try - don't know if this changes things:

 global $dealer_details;
 print $dealer_details[dealer_name]; 
Yzzi’s picture

thanks for the reply Fago.

No, unfortunately, it doesn't solve the problem. It's a very strange one, and if anyone has any more ideas, I'd love to hear them.

Thanks again Fago.

mitchell’s picture

Version: 6.x-1.0-beta4 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

@Yzzi: Is this still an issue in the latest release?

klausi’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Reopen if still an issue.