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
Comment #1
fagoperhaps try - don't know if this changes things:
Comment #2
Yzzi commentedthanks 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.
Comment #3
mitchell commented@Yzzi: Is this still an issue in the latest release?
Comment #4
klausiReopen if still an issue.