Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 14, 2013 @ 10:37
    Rasmus Fjord
    0

    TeaCommerceAdminOrder having trouble saving order notes

    Hey

    Just got a call from a customer saying that the suddenly cant save parameters with the save button on an order.

    Its in the TeaCommerceAdminOrder.xslt. It dosnt save the data.

    They have 3 fields that it should save and the javascript func is just the same as the default just a few extra params.

    var formObj = {
    "comments": jQuery("#comments").val(),
    "orderNotes": jQuery("#orderNotes").val(),
    "trackTrace":  jQuery("#trackTrace").val()
    };
    TeaCommerce.updateOrderPropertiesAdmin(]]><xsl:value-of select="$order/@id"/><![CDATA[,formObj, false);
    });

     

     If we look at the call it makes :

    A few times in chrome it actually gets through, so its like its not finishing the call or something. The site us running umb 4.7.2 and tea 1.4.3.1

  • Rune Grønkjær 1372 posts 3103 karma points
    Jan 14, 2013 @ 11:05
    Rune Grønkjær
    100

    Ahh. Found the problem. There's a bug in the teaCommerceAdminOrder.xslt. It does not run the call asynchronously, because the method parameters are wrong. Try this line instead:

    TeaCommerce.updateOrderPropertiesAdmin(]]><xsl:value-of select="$order/@id"/><![CDATA[,formObj, {async:false});

    /Rune

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 14, 2013 @ 11:35
    Rasmus Fjord
    0

    Arh thx Rune it works :) 

    Wierd that it hasnt been an issue before :) 

Please Sign in or register to post replies

Write your reply to:

Draft