Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeremy 17 posts 37 karma points
    Jan 04, 2012 @ 23:50
    Jeremy
    0

    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.

      <input id="hdnFirstName" type="hidden" value="{$currentMember/first_name}" />
    <
    input id="hdnLastName" type="hidden" value="{$currentMember/last_name}" />
    <input id="hdnEmail" type="hidden" value="{$currentMember/@email}" />

    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

  • Rune Grønkjær 1372 posts 3103 karma points
    Jan 05, 2012 @ 07:58
    Rune Grønkjær
    0

    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

     

Please Sign in or register to post replies

Write your reply to:

Draft