• Resolved alanjacobs

    (@alanjacobs)


    Hi, I have an odd problem. I have a multi stage trigger ( WooCommerce virtual product purchase AND order completed. ) The actions then make some updates to a users profile fields ( custom ones created in Ultimate Member ).

    In normal use this works perfectly. User buys a Membership Renewal, pays and the Automation kicks in to update their profile.

    But if a member buys a physical product in the same order as their renewal, then the order is not completed for some days and possibly weeks. ( Has to wait for the physical product to be dispatched and then the order be manually completed ).

    When the Order is then completed I see the Automation work as expected …
    However. Although the Automation logs show all the fields being updated the users actual profile doesn’t get updated.
    I initially thought that this might be because the user ( or an admin ) had the users profile open in edit at the time the automation ran, and when the profile was saved it might have overwritten the updated values? But neither the Admin nor the user admit to even looking at the profile beforehand and I can see no sign in the Activity logs.

    Also I have Admin Columns plugin that adds one of the custom fields to the Users view in the WP dashboard. This value id get updated and showed the new value as expected following the Automation … but the Users actual profile still shows that field to be the previous value.

    How can this happen? Are there multiple copies of the profile fields perhaps?

    Many thanks
    Alan

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @alanjacobs !

    You may have a problem with your cache plugin.
    It’s not that there are multiple profiles, it’s that AutomatorWP updates the fields but possibly your caching plugin shows the old values.
    As you can see in the administration panel if they are updated.
    I recommend that you contact the support of your cache plugin so that you expose the problem and they give you a solution.

    Hope it helps!

    Thread Starter alanjacobs

    (@alanjacobs)

    Ok thanks that would explain it. I do turn off the users cache in Ultimate Member but there are others that may interfere. I’ll check them out and do some more testing.

    Cheers
    Alan

    Plugin Contributor Paco González Pérez

    (@pacogon)

    You’re welcome @alanjacobs !

    When you review it, tell me if it worked for you or not.

    ??

    Thread Starter alanjacobs

    (@alanjacobs)

    Had a repeat of this issue today.
    Again a manual Completion of the WC order.
    Automation triggered and says it all ran ok. Even sends an email that lists the old and new values it claims to have updated.

    But the WP Users view shows one field with the new value ( an Admin Columns added column ) But the actual profile shows no updates or changes at all.
    UM cache plus Kinsta and Autoptimize caches all cleared.

    Not too sure where to go now. Maybe try and create a stripped down test site and try and recreate? ( Currently testing on local so can’t give you access )

    Cheers
    Alan

    Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @alanjacobs!

    I recommend that you disable or uninstall all caches or cache plugins, since the fields are visible in the AutomatorWP action and in the admin, but not in the frontend.

    For our part, we cannot do anything about it since AutomatorWP does not manage any type of cache.

    Hope it helps!

    Thread Starter alanjacobs

    (@alanjacobs)

    Hi, After more testing I do not believe this is a cache issue ( having disbabled all the caching I am aware of ).

    I think this is down to the triggers.

    I have 2 sequential triggers.
    1) Woo – User purchases a product ( Renewal membership )
    2) Woo -User completes a purchase.

    When the 1st trigger is invoked it runs against the User themselves. But the 2nd is initiated by an Admin who manually completes the users order.
    Even though the logs show that the triggers are met and the automation fires the fields are not being updated.

    The same automation runs perfectly when the users purchase and order completion happen at the same time. ie no Admin manual completion of an order.

    Having looked more at triggers I see that there are a couple of Pro Woocommerce ones that might be more appropriate in this case.
    Users order status changes to a status
    or perhaps better
    Users order with a product changes its status to a status

    Does this sound a likely cause?

    Alan

    Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @alanjacobs!

    Both triggers take the user assigned to the order and not the admin who marks it as completed.
    In any case, using these 2 triggers is redundant, since the first one (user purchases a product) is only executed when the purchase is completed, so the first trigger will work in the same way.

    Hope it helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multiple triggers not updating correctly’ is closed to new replies.