Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 364 posts 918 karma points
    Nov 22, 2012 @ 14:36
    Craig O'Mahony
    0

    Setting up Tea Commerce

    Hi Folks,

    I've installed Tea Commerce and I'm trying to follow the set up documentation at http://anders.burla.dk/umbraco/i-installed-tea-commerce-whats-next/ and I'm getting the following error when I try to Confirm the order.

    Error: TypeError: rtnData is nullSource

    File:http://localhost:34406/scripts/TeaCommerce/teaCommerce_unpacked.js

    Line: 727

    Obviously I don't expect someone to try and spend the time to recreate this error but I was wondering if someone knows what the object rtnData should be populated with or returning without me having to try to break down the script.

    Thanks,

    Craig

     

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 23, 2012 @ 07:59
    Anders Burla Johansen
    0

    Hi Craig

    What do you try and do when this error appears? I know that you try to confirm the order - but from a more technical point of view - what method do you execute etc?

    Kind regards
    Anders

  • Craig O'Mahony 364 posts 918 karma points
    Nov 23, 2012 @ 09:42
    Craig O'Mahony
    0

    Hi Anders,

    The method is the 'Confirm order of the cart' which I've put in the default.js file. It's hooking in to the click event of the Confirm Order link. eg

    jQuery('a#confirmOrder').live("click", function ()

    Which loads the values of the input fields into formObj and calls the following functions:

      TeaCommerce.updateOrderProperties(formObj, false);
      TeaCommerce.setPaymentMethod(2, false);
      TeaCommerce.goToPayment();

    which are in the custom TeaCommerce scripting files I 'think' that the values of the form are being attempted to get loaded into the rtnData variable but, for whatever reason, this isn't happening.

    Thanks for your help,

    Craig

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 23, 2012 @ 14:08
    Anders Burla Johansen
    0

    What browser do you test it in? Safari?

  • Craig O'Mahony 364 posts 918 karma points
    Nov 23, 2012 @ 14:16
    Craig O'Mahony
    0

    Hi again Anders,

    I ran it in Safari, Opera, IE9, Firefox and Chrome. All with the same result.

    Thanks,

    Craig

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 23, 2012 @ 15:47
    Anders Burla Johansen
    0

    Well I think that the old blog post is a little to old to use for the latest version of Tea Commerce. The best way is to look at the starter kit to see how things are done. We will make more documentation for Tea Commerce 2.0. I think it is the goToPayment method that gives you problems. Try and remove it and see if the site functions and no javascript error is thrown. If that works - then we know it is the goToPayment method. If it is - be sure to add the default settings and enter your accept url and cancel url.

  • Craig O'Mahony 364 posts 918 karma points
    Nov 23, 2012 @ 16:40
    Craig O'Mahony
    0

    Hi again Anders,

    I did actually start by installing the starter kit package, but removed that and decided to remove that and try to build one from stratch (mainly due to getting confused with the amount of scripting hookups that occur).

    I only really need a really simple shop (No shipping details, etc) and I keep flitting between tea commerce and uCommerce and can't decide which to go for!

    Thanks,

    Craig

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 23, 2012 @ 18:01
    Anders Burla Johansen
    0

    You should go with Tea Commerce of course :)

    Did you try and remove the goToPayment and see if that removes the javascript error?

  • Craig O'Mahony 364 posts 918 karma points
    Nov 26, 2012 @ 11:13
    Craig O'Mahony
    0

    Hi Anders,

    Sorry about my lack of response.......I'm going to need to re-set up this Tea Commerce package as we only have a limited number of SQL connections that I can use and had to use this connection for another internal project. Leave this with me and I'll get to you.

    Thanks again,

    Craig

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 26, 2012 @ 11:30
    Anders Burla Johansen
    0

    No problem - have a great day!

Please Sign in or register to post replies

Write your reply to:

Draft