I'm trying to implement teacommerce into my existing site, and have got everything working apart from the shipping & payment method names appearing at step 3 of the checkout.
I've checked the dictionary items against the values in the teacommerce section for each payment method. They appear to match but I get no text. The images associated with each method appear ok, as do the prices and radio buttons.
Its obviously something I've changed but cannot find out what :)
Could you try and write out the dictionary item name - do you get a value there? If yes - you should just use that to get the text from umbraco.library:GetDictionaryItem
Sorry for the late reply, I'm working on this charity site in my spare time. I'm still having problems getting the payment methods to show. I'm using the starter kit XSLT (cart_step03.xslt)
<!-- The Order --> <xsl:variable name="order" select="teacommerce:GetOrderXml()" /> <!-- All shipping methods --> <xsl:variable name="shippingMethods" select="teacommerce:GetShippingMethods()" /> <!-- All payment methods --> <xsl:variable name="paymentMethods" select="teacommerce:GetPaymentMethods()" /> <!-- All countries --> <xsl:variable name="countries" select="teacommerce:GetCountries()" /> <!-- The current country --> <xsl:variable name="currentCountry" select="teacommerce:GetCurrentCountry()" /> <!-- The next step is found dynamically --> <xsl:variable name="nextStep" select="following-sibling::CartStep[1]" /> <!-- The previous step is found dynamically --> <xsl:variable name="prevStep" select="preceding-sibling::CartStep[1]" /> <!-- The total quantity --> <xsl:variable name="totalQuantity"> <xsl:choose> <xsl:when test="$order/@id != ''"> <xsl:value-of select="$order/@totalQuantity" /> </xsl:when> <xsl:otherwise> <xsl:text>0</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="stepId" select="@id" /> <!-- The current steps position in the cart step process is calculated --> <xsl:variable name="cartStepPosition"> <xsl:for-each select="ancestor-or-self::Homepage//CartStep"> <xsl:if test="@id = $stepId"> <xsl:value-of select="position()" /> </xsl:if> </xsl:for-each> </xsl:variable> <!-- The steps class is dynamically created --> <xsl:variable name="cartClass"> <xsl:value-of select="concat('stepProgress', $cartStepPosition)" /> <xsl:value-of select="concat(' items', $totalQuantity)" /> </xsl:variable>
<!-- VARIABLES END -->
<!-- HTML START --> <div id="cart"> <xsl:attribute name="class"> <xsl:value-of select="$cartClass" /> </xsl:attribute> <!-- The following div#invokeXSLT is used by the update script to load the correct xslt when updating the UI --> <div class="invokeXSLT">cart_step03.xslt</div>
when viewing the page with Umbraco Debug on I get a number of these errors:
Error returning dictionary item 'creditCard' Object reference not set to an instance of an object. at umbraco.library.GetDictionaryItem(String Key)
There are entries in the dictionary for Credit Card called creditCard & creditCardDesc, the payment section in TeaCommerce uses the same Dictionary Item. The only other thing I can think of is that I'm not using a langauge node, but everything else on the site is working correctly.
Can you use a normal umbraco dictionary item in your template. If yes - try in your xslt for some hardcoded value. If you can do that - then you would have to do some xslt copy to see what value you send as the dictionary key.
I had set the language but not assigned a domain / language on the root node. Once I put this in, the payment & shipping dictionary items appeared correctly.
Problem with payment and shipping methods
I'm trying to implement teacommerce into my existing site, and have got everything working apart from the shipping & payment method names appearing at step 3 of the checkout.
I've checked the dictionary items against the values in the teacommerce section for each payment method. They appear to match but I get no text. The images associated with each method appear ok, as do the prices and radio buttons.
Its obviously something I've changed but cannot find out what :)
Hi Ian
Could you try and write out the dictionary item name - do you get a value there? If yes - you should just use that to get the text from umbraco.library:GetDictionaryItem
Kind regards
Anders
Hi Anders,
Sorry for the late reply, I'm working on this charity site in my spare time. I'm still having problems getting the payment methods to show. I'm using the starter kit XSLT (cart_step03.xslt)
This is the part that doesn't show anything:
when viewing the page with Umbraco Debug on I get a number of these errors:
Error returning dictionary item 'creditCard'
Object reference not set to an instance of an object.
at umbraco.library.GetDictionaryItem(String Key)
There are entries in the dictionary for Credit Card called creditCard & creditCardDesc, the payment section in TeaCommerce uses the same Dictionary Item. The only other thing I can think of is that I'm not using a langauge node, but everything else on the site is working correctly.
Can you use a normal umbraco dictionary item in your template. If yes - try in your xslt for some hardcoded value. If you can do that - then you would have to do some xslt copy to see what value you send as the dictionary key.
Kind regards
Anders
Cracked it !!
I had set the language but not assigned a domain / language on the root node. Once I put this in, the payment & shipping dictionary items appeared correctly.
Thanks for the pointers Anders, cheers Ian
Super - glad you found the solution.
Could you mark the right answer as the solution as a help to others - thanks :)
Kind regards
Anders
is working on a reply...