3 replies [Last post]
artatac's picture
Offline
Joined: 06/11/2009
Juice: 79
Was this information Helpful?

I am using uc node access to sell access to premium content nodes on my site. I have spotted that all works well if the user is already logged in. But if an anon user buys a node access product. it fails. I have auto login enabled after transaction completion. So if he then buys the product (again) it works!. The transaction shows in his account transaction history but it is not granting access. Guidance please
I presume it is because the node access is firing (and failing) just before the checkout is complete and the account is created??

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: uc node access fails just before account created?

If the access is supposed to be granted when the order hits the "Payment received" status, then that's likely what's happening. User accounts aren't created until right before the "checkout completed" trigger, which comes after the payment being processed.

artatac's picture
Offline
Joined: 06/11/2009
Juice: 79
Thanks Lyle So is there a

Thanks Lyle
So is there a work around? apart from having to get users to set up the account and log in before buying?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Thanks Lyle So is there a

There's likely a conditional action that controls when access is granted. You can try setting it to use the "Completed" status, or try rebuilding that predicate on the "checkout is complete" trigger. (You can't just change a predicate's trigger unfortunately.)