Cancel Merchandise Plan Payment

6 years 2 months ago #302112 by webmonkey
Cancel Merchandise Plan Payment was created by webmonkey
Hi,

I want that when a user cancels the payment of a merchandise, auto action writes a record into a specific table in the database. what is the right trigger and what are the variables to set?

I set:
trigger: onCPayAfterPaymentStatusUpdateEvent

type: Code

User: Self

Conditions:
value: [var4] equal to RegistrationCancelled

Action: PHP
Code:
$db = JFactory::getDbo();
$query_update = "UPDATE `#__comprofiler` SET `cb_campo_libero` = 'deleted' WHERE `user_id` = '853' ";
$db->setQuery($query_update);
$db->execute();

the problem seems that the trigger doesn't fire...

Where I'm wrong?

Thanks

Please Log in to join the conversation.

6 years 2 months ago #302113 by webmonkey
Replied by webmonkey on topic Cancel Merchandise Plan Payment
I found the solution :-)
there was another auto action that blocked the execution
now everything works
thanks

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.151 seconds

Facebook Twitter LinkedIn