Copied to clipboard

Flag this post as spam?

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


  • Tomasz Kowalski 97 posts 341 karma points
    Nov 15, 2013 @ 13:39
    Tomasz Kowalski
    0

    Webshop from scratch - Internal Server Error

    Hi,

    To make TC webshop from demo kit is (almost) piece of cake :) but I need to make small webshop in current umbraco content, so I cant use demo shop...

    I have made Product and CartStep doc types, based on demo shop. In Product template I want (for now) use only TC JS API, so I have bind a function to a button:

    jQuery("#rhAddToCart").click(function() {
                        TC.addOrUpdateOrderLine(
                            {storeId:1,
                             productIdentifier:1637,
                             quantity:1,
                             async: false
                            });

    This 1637 is actual product NodeId.

    Question: Do I need to create order first?

    Problem: TC.addOrUpdateOrderLine throws error:

    POST http://XXXX/base/TC/FormPost.aspx 500 (Internal Server Error)

    in jquery...

    I am aware, that it may be not enough information, but any help will be appreciated.

    Kind regards

    Thomas

  • MrFlo 149 posts 392 karma points
    Nov 15, 2013 @ 14:40
    MrFlo
    1

    Hi,

    I had the same problem, check if you have added a storepicker on your doc type with the alias "store" at your root node.

    Also check the log to have more information about the error.

    Florent

  • Tomasz Kowalski 97 posts 341 karma points
    Nov 15, 2013 @ 19:03
    Tomasz Kowalski
    100

    Edit: Umbraco 6.1.6, TeaCommerce 2.2.1

    @MrFlo, Thank you for help. I have added this storepicker and It seems to be it. I'll check it better on Monday, and then  check your answer as a solution :)

    Have a nice weekend

    Kind regars

    Thomas

  • MrFlo 149 posts 392 karma points
    Nov 29, 2013 @ 05:06
    MrFlo
    0

    Could you check my answer if it was the solution ;-)

    Cheers

  • Tomasz Kowalski 97 posts 341 karma points
    Nov 29, 2013 @ 13:05
    Tomasz Kowalski
    0

    I could but I can't. By mistake I have clicked in my post (why is it possible?), and now I can't (or I don't know how to) "uncheck" it...

    But YES, you were right!

    Regards

    Thomas

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies