I'm using TeaCommerce on a site that sells access to training videos for a specific length of time. To accomplish this, I require the user to login or create an account before they can checkout. This is part of the xsl I use to send these values to the teacommerce javascript.
In AfterOrderFinalized, I update their umbraco member indicating which videos they are allowed to view.
Everything works great 99% of the time, but I've gotten several reports that users purchased items but were never credited. When I login to the backend, I can see their order in TeaCommerce, and it has been paid, but there is no First or Last Name associated with it. Something is causing the currentMember to be lost in these cases, and I'm not sure why. I have never been able to replicate the issue myself, and I'm not even entirely sure it is a TeaCommerce issue, but I hoped someone could at least point me in the right direction.
TeaCommerce and $currentMember
I'm using TeaCommerce on a site that sells access to training videos for a specific length of time. To accomplish this, I require the user to login or create an account before they can checkout. This is part of the xsl I use to send these values to the teacommerce javascript.
In AfterOrderFinalized, I update their umbraco member indicating which videos they are allowed to view.
Everything works great 99% of the time, but I've gotten several reports that users purchased items but were never credited. When I login to the backend, I can see their order in TeaCommerce, and it has been paid, but there is no First or Last Name associated with it. Something is causing the currentMember to be lost in these cases, and I'm not sure why. I have never been able to replicate the issue myself, and I'm not even entirely sure it is a TeaCommerce issue, but I hoped someone could at least point me in the right direction.
Thanks for you help,
Jeremy
Hi Jeremy,
Do you have memberpermissions set on the checkout page?
You might want to implement some serverside validation in the cart flow, to make sure everything is as it should be.
I have written this blogpost on the subject:
http://rune.gronkjaer.dk/en-US/2011/08/18/tea-commerce-server-side-validation/
/Rune
is working on a reply...