Copied to clipboard

Flag this post as spam?

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


  • Matt Bliss 176 posts 234 karma points c-trib
    Dec 16, 2011 @ 17:28
    Matt Bliss
    0

    teacommerce:GetPaymentForm

    I'm developing a site around the starter kit. What would cause the teacommerce:GetPaymentForm function in the cart_step04.xslt file to return no value in the submit button?

          <div id="cartBottom" class="noPrint">
            <xsl:if test="$prevStep != ''">
              <href="{umbraco.library:NiceUrl($prevStep/@id)}" id="prev">
                <xsl:value-of select="$prevStep/@nodeName" disable-output-escaping="yes" />
              </a>
            </xsl:if>
            <xsl:if test="$nextStep != ''">
              <div id="nextWrap">
                <div>
                  <xsl:value-of select="$nextStep/@nodeName" disable-output-escaping="yes" />
                </div>
                <xsl:variable name="button">
                  <xsl:text>&lt;input id=&quot;next&quot; type=&quot;submit&quot; value=&quot;&quot; class=&quot;&quot; /&gt;</xsl:text>
                  <!--<xsl:text>&lt;input type=&quot;submit&quot; value=&quot;</xsl:text>
                  <xsl:value-of select="umbraco.library:GetDictionaryItem('AcceptAndPay')" />
                  <xsl:text>&quot; class=&quot;&quot; /&gt;</xsl:text>-->
                </xsl:variable>
                <xsl:value-of select="teacommerce:GetPaymentForm($button)" disable-output-escaping="yes" />
                <!--<input type="submit" value="{$nextStep/umbHeadline}" id="next" link="{umbraco.library:NiceUrl($nextStep/@id)}" />-->
              </div>
            </xsl:if>
          </div>

    Output:

    <input id="next" type="submit" value="" class="">

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Dec 20, 2011 @ 08:10
    Rune Grønkjær
    0

    Hi Mathew,

    Actually I don't know. Haven't tried that one :)

    Please check your order to see if a payment method have been chosen. Do that with firebug or the like. Use the TeaCommerce.getOrder() in the console and inspect the return.

    And by the way, sorry for the late answer. Both Anders and me got hung up elsewhere.

    /Rune

  • Matt Bliss 176 posts 234 karma points c-trib
    Dec 20, 2011 @ 09:02
    Matt Bliss
    0

    Thanks Rune,

    Silly mistake, I was looking in the wrong place. It was a

     <form runat="server"> 

    from another template that was surrounding the form from the XSLT file and therefore redirecting back to the same page.

    Matt

  • Rune Grønkjær 1372 posts 3103 karma points
    Dec 20, 2011 @ 11:38
    Rune Grønkjær
    0

    Cool. Nice one :)

Please Sign in or register to post replies

Write your reply to:

Draft