Copied to clipboard

Flag this post as spam?

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


  • lookup 5 posts 25 karma points
    Aug 19, 2011 @ 08:13
    lookup
    0

    Error after click 'Add to cart' on Productview

    Hello

    I get an error when I click on the 'Add to cart'-Button. I installed TC 1.4.1.0 and starter kit 1.2.0.2 on localhost umbraco 4.7.

    Here the error:

    <error><![CDATA[MESSAGE:
    Die Eingabezeichenfolge hat das falsche Format.

    STACKTRACE:
       bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
       bei System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
       bei System.String.System.IConvertible.ToInt32(IFormatProvider provider)
       bei System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
       bei System.Convert.ChangeType(Object value, Type conversionType)
       bei TeaCommerce.Presentation.TeaCommerceBase.RequestModule.invokeMethod(restExtension myExtension, Object[] paras)

    INNEREXCEPTION:
    ]]></error>

    I don't change anything, I only added the country switzerland, a VAT and new Currency...

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

    Hi Lookup,

    Looks like something wrong, maybe nothing is sent to the server by one of the methods. Please use firebug and look at the servercalls in the Console. You will be able to see exactly what is sent to the server and what call that fails.

    /Rune

  • lookup 5 posts 25 karma points
    Aug 19, 2011 @ 08:28
    lookup
    0

    Hi Rune, thanks for your help.

    It tries to make a POST on 

    tcbase/teacommerce/AddOrderLine/undefined/1.aspx
     
    I think the "undefined" is here the part of the error ;-). I get the same error in the console of firebug...

     

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Aug 19, 2011 @ 10:24
    Rune Grønkjær
    0

    That is the node id that's missing.

    If you're using a vanilla starterkit the node id is found by the javascript either on a variant select box or on the product div with class "product".

    Something must have been changed either to the html or the javascript. Check both. The javascript is in the advanced js file around line 194

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft