Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Ncik 10 posts 30 karma points
    May 19, 2011 @ 08:30
    Ncik
    0

    ucommerce not inserting UmbracoMemberId into uCommerce_Customer table

    when i create an order and submit it everyting gets inserted into the db as expected except the UmbracoMemberId into uCommerce_Customer table. i'm pretty sure i've removed something i should't have. i've also lost the original source code which doesn't help. i'm using 1.1.1.0. please help

    here's my submitBasket.xslt

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [
      <!ENTITY nbsp "&#x00A0;">
    ]>
    <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:msxml="urn:schemas-microsoft-com:xslt"
     xmlns:umbraco.library="urn:umbraco.library"
     xmlns:CommerceLibrary="urn:CommerceLibrary"
     exclude-result-prefixes="msxml umbraco.library CommerceLibrary">
      <xsl:output method="xml" omit-xml-declaration="yes"/>
      <xsl:param name="currentPage"/>
      <xsl:template match="/">
        <SCRIPT language="JavaScript">
          <![CDATA[            
                
                function redirectShoppingCart()
                {
                    var val="../bp-shop.aspx";   
                    location.href =val;
                }    
                 
                ]]>
        </SCRIPT>
        <xsl:variable name="isPostback" select="umbraco.library:RequestForm('submitBasket') "></xsl:variable>
        <xsl:if test="string-length($isPostback) > 0">
          <xsl:variable name="result" select="CommerceLibrary:ExecuteBasketPipeline()"/>
    
          <xsl:variable name="addressResult" select="CommerceLibrary:Set('Billing')"></xsl:variable>
    
          <xsl:variable name="result1" select="CommerceLibrary:Checkout()"></xsl:variable>
    
          <div id="continue_container">
            <div class="continue_container_r">
              <div class="btn_AddToCart">
                <input  type="submit" value="Continue" id="btnContinue" class="btn_UpdateCart"
                        onclick="redirectShoppingCart();"></input>
              </div>
            </div>
            <div class="continue_container_l">
              <h3> Your order has been placed successfully</h3>
            </div>
          </div>
    
        </xsl:if>
      </xsl:template>
    </xsl:stylesheet>
  • Søren Spelling Lund 1797 posts 2786 karma points
    May 19, 2011 @ 11:46
    Søren Spelling Lund
    0

    Have you setup uCommerce to create members on checkout? And also specified a member group and type?

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 19, 2011 @ 11:47
    Søren Spelling Lund
    0

    And is the customer logged in? :)

  • Ncik 10 posts 30 karma points
    May 20, 2011 @ 02:45
    Ncik
    0

    thanks for the quick reply soren.

    i'm not creating customers on checkout, or assigning them a group or type, and member is logged in.

    i know ive buggered something up as when i switch on 'create customers as members', ucomm doesn't insert into the [uCommerce_Address] or [uCommerce_Customer], yet when i switch it off, it does do the insert

    it's a members only site so i create members when they register.

    i'm happy to try any other suggestions?

  • Ncik 10 posts 30 karma points
    May 23, 2011 @ 03:06
    Ncik
    0

    fixed - i just checked the box and chose my group and type

    sorted

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 23, 2011 @ 10:14
    Søren Spelling Lund
    0

    Wonderful.

Please Sign in or register to post replies

Write your reply to:

Draft