Copied to clipboard

Flag this post as spam?

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


  • Fabio Milheiro 74 posts 136 karma points
    Oct 23, 2012 @ 19:34
    Fabio Milheiro
    0

    uCommerce GetCurrentCustomer returns error when user is not logged in?

    Installed the uCommerce and uCommerce store packages in a client site.

    Why do these code errors?

    <xsl:variable name="currentCustomer" select="CommerceLibrary:GetCurrentCustomer()"/>

    This is located in the AddProductReview xslt and some other places.

    If there's no user doesn't it make sense to return '' to currentCustomer variable instead of erroing?

    Thanks!

  • Fabio Milheiro 74 posts 136 karma points
    Oct 25, 2012 @ 16:12
    Fabio Milheiro
    0

    We need to use

     

    <xsl:when test="umbraco.library:IsLoggedOn()">

     

    and wrap the method GetCurrentCustomer inside this.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies