5 replies [Last post]
bloke_zero's picture
Offline
Joined: 03/24/2009
Juice: 62
Was this information Helpful?

Not sure what I did, but Conditional Actions don't seem to be working at all. The only thing I can see on that date that I definitely did was add the upsell module, but I'm not sure that has any bearing.

It's Drupal 6.12 and UC RC3

I've been looking around in the code, but I can't see the problem, except I can see that the triggers aren't firing by putting some watchdog logging in.

Any suggestions as to where to look?

Thanks

Alex

------------------------------
http://zero-design.info

danlopez00's picture
Offline
Joined: 09/09/2009
Juice: 23
Same Issue

Enabled a conditional action for email notification for expiring accounts and no emails are sent. Where is a tutorial or example how to use PHP for conditions and actions. Documentation is quite lacking

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Same Issue

If you are getting shipping quotes or tax line items on the checkout page, then conditional actions in general are working. You have to make sure that all of the conditions on a predicate are being met before the action will be performed.

Role expiration warnings are not sent by default. There is a setting in Store administration > Configuration > Product settings > Product features to change how long before the role expires the warning will be sent. Cron also has to be run on a regular basis, or the warnings won't be sent, nor will the roles actually expire.

danlopez00's picture
Offline
Joined: 09/09/2009
Juice: 23
1 down 1 to go...???

Cool got that configured! Sends out email. But to the logged in user?!?!

[user-mail] is the value in the action. I looked at the code and this is using the user object. Why would that make sense? It needs to notify ALL users set to expire. And... If no one is logged in? well... no emails are sent. I need a way to iteratively grab all user emails that belong to users that are expiring.

Thanks

danlopez00's picture
Offline
Joined: 09/09/2009
Juice: 23
Running CRON as root helps?

Running CRON as the root user of the system helps? We changed the cron to run with root user and sent emails to users and to the root account.

Ideas?

danlopez00's picture
Offline
Joined: 09/09/2009
Juice: 23
Bug posted