Copied to clipboard

Flag this post as spam?

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


  • Marco Fernandes 15 posts 51 karma points
    Mar 12, 2012 @ 17:49
    Marco Fernandes
    0

    Exception when product is added to cart


    Hi!
    When i add a product to cart the following exception is thrown:
    Any thoughts?
    Thanks in advance!


    <error><![CDATA[MESSAGE:
    
    Exception has been thrown by the target of an invocation.
    STACKTRACE:
    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at TeaCommerce.Presentation.TeaCommerceBase.RequestModule.invokeMethod(restExtension myExtension, Object[] paras) INNEREXCEPTION:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at TeaCommerce.Data.Order.CreateOrderLine(Int32 nodeId, Decimal quantity, Boolean isUnique)
    at TeaCommerce.Base.AddOrderLine(Order order, Int32 nodeId, Nullable`1 orderLineId, Decimal quantity, Boolean isUnique, Boolean overwriteQuantity, IDictionary`2 dynamicProperties)
    at TeaCommerce.Base.AddOrderLine(Int32 nodeId, Nullable`1 orderLineId, Decimal quantity, Boolean isUnique)
    at TeaCommerce.Base.AddOrderLine(Int32 nodeId, Decimal quantity)]]></error>

  • Rune Grønkjær 1372 posts 3103 karma points
    Mar 12, 2012 @ 19:12
    Rune Grønkjær
    0

    Hi Marco,

    You should check your general settings and make sure that your "Order line property aliases" match your product node properties. You can just rename or remove them from the comma separated string.

    Tea Commerce will add the "Order line property aliases" to the orderline and throw an error (I think) if they do not exist.

    If that's not your error, please post some javascript and html.

    /Rune

  • Marco Fernandes 15 posts 51 karma points
    Mar 12, 2012 @ 19:43
    Marco Fernandes
    0

    Hi Rune,

    Thanks for your reply.

    We are using the starterkit with no major changes.

    I have cleared the Order line property aliases and still no success

     

     

     

    The form has the OrderId and LanguageId correctly filled

    The URL of the POST call is correct. NodeId/Quantity.aspx

    In SQL the Order is created succefully. The OrderLines dont get created. 

    Is there any log or debug i could do to understand what field is null?

     

     

     

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Mar 13, 2012 @ 08:27
    Rune Grønkjær
    0

    Hi Marco,

    I have tried and recreate the error, but no matter what I delete or change it just keeps on adding the orderline. Do you have an address where I can see the error happening? You can mail me at rg [at] teasolutions.dk.

    What you must do is try to find out what you guys changed on the starter kit. Did you change the javascript, doc types, Tea Commerce settings or html languages? Most of those changes should not create the error mentioned, but it might help us zoom in onto the problem.

    Also what version of Tea Commerce do you have installed?

    /Rune

  • Marco Fernandes 15 posts 51 karma points
    Mar 13, 2012 @ 10:35
    Marco Fernandes
    0

    Hi Rune,

    I will send you an e-mail with the project address so you could give a look.

    We changed the settings in Tea Commerce: Created languages, Delivery and payment methods.

    Also changed the product list and product XSLT. To remove the price. But it have worked before with these changes. 

    I cant understad what triggered the malfunction.

    I cant remember the version of Tea Commerce, but the DLL says // TeaCommerce, Version=1.0.0.1541, Culture=neutral, PublicKeyToken=null


  • Marco Fernandes 15 posts 51 karma points
    Mar 13, 2012 @ 11:04
    Marco Fernandes
    0

    Rune,

    Updating the Tea Commerce was enough to resolve the situation.
    Like you said some configuration might be overridded,
    Thank you very much for your help.
Please Sign in or register to post replies

Write your reply to:

Draft