Copied to clipboard

Flag this post as spam?

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


  • Alessandro Bellisai 30 posts 120 karma points
    Sep 18, 2012 @ 14:07
    Alessandro Bellisai
    0

    On the same cart create multiple order

    Hi 

    Is it possible on teacommerce create multiple order for a customers?

    My situation: I would like to allow customers to create multiple order with only one product, so they can insert on cart, multiple order.

    On javascript API I’ve found only TeaCommerce.getOrder(); nothing to create another instance of an order, is it right?

    Some one can  help me?
    Alessandro

  • Rune Grønkjær 1372 posts 3103 karma points
    Sep 19, 2012 @ 11:20
    Rune Grønkjær
    0

    Hi Alessandro,

    Sorry for the late answer. The Umbraco mail bot might have stopped sending out notifications.

    There can only be one active order in Tea Commerce at a time! That order is stored in sessionstate and that is the one Tea Commerce is working on everytime you use the javascript API.

    Using the Tea Commerce .NET API you are able to switch the current order using the TeaCommerce.SessionController. But you will still only be able to let the customer work on one order at a time.

    Using the xslt or razor API's you can fetch ANY order by it's id. That means that if you can somehow store all your customers orders' id's you will be able to DISPLAY them to him. You will then have to switch the current order everytime your customer needs to start a new order or edit one of the existing ones.

    That might be pretty advanced.

    Another posibility is to just use the one order available and DISPLAY it differently. In your UI you can just display every order line as if it was an independent order. That will work in cases where you only need the customer to think he has created seperate orders.

    Hope I have made myself clear. Otherwise feel free to ask again.

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft