Copied to clipboard

Flag this post as spam?

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


  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 06, 2013 @ 20:43
    Anthony Dang
    0

    Event booking

    Just wondering if tc can be used for an event booking system.

    I have events in a custom db, NOT umbraco. But I show an umbraco page eg.

    /events?id=SomeEventID

    What I need is :
    - to select X number of tickets on this page
    - shopping cart - allowing purchase of tickets of multiple events
    - booking confirmation page
    - payment


     

  • Anders Burla 2560 posts 8256 karma points
    Apr 07, 2013 @ 11:30
    Anders Burla
    0

    Hi Anthony

    Tea Commerce can be used for anything you need to purchase online - products, events, licenses etc. If you have the events in a custom DB you properly already have some logic to display them at the website. The thing you need to do to let Tea Commerce know how to fetch your custom data is to write you own ProductInformationExtractor. This is the component that we have a standard implementation that fetch data from an umbraco node - but in your case you will need to get it from your custom DB. When you have that and you have suppressed the dependency with you new provider - then the rest is normal Tea Commerce.

    A more simple way is to have 1 node in Umbraco that represents your event. But a price of 0 and just a generic name. Now when you use Tea Commerce to add the product to the cart you will use the NotificationCenter to be notified when and order line is added. Now you fetch the real info from your custom DB and change the info on the order line to your event details and price.

    Your UI is just a normal select html element that will be the quantity of the purchase. Shopping cart is what Tea Commerce is all about - try look at the starter kit - starterkit.teacommerce.net. Confirmation page is just an Umbraco page that use the Tea Commerce API to list the shopping cart content. Payment is using Tea Commerce and its out of the box payment providers - or you can even create your own (code is open source): https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Hope all this makes sense - write here again :)

    Kind regards
    Anders

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 07, 2013 @ 16:29
    Anthony Dang
    0

    Hey Anders

    Yes I already have a listing page, and an event page which both pull from a custom db. 

    What do you mean by "A more simple way is to have 1 node in Umbraco that represents your event. But a price of 0 and just a generic name. "

    My current content tree looks like this:

    content
    - events - a listing page
        - event - this takes an id in the query string 
     

  • Anders Burla 2560 posts 8256 karma points
    Apr 07, 2013 @ 17:06
    Anders Burla
    0

    Then create an "fake" event product node (a new doc type). Now you can add that "product" to your Tea Commerce cart - be sure to add an order line property with the event id that the customer is currently buying (used in a moment). When adding no info is added like prices, product name etc. You would have to hook into the NotificationCenter and listen for the order line adding/updating. Here you use the order lines property holding the event id to fetch the event info from your custom DB and start chaning the info on the order line - like its original prices (the prices in different currencies that you need to support).

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 24, 2013 @ 23:05
    Anthony Dang
    0

    Heya

    So by "fake" event, do you mean a separate event node per event? 

    Could I simply use my current event node?

    content
    - events - a listing page
        - event - this takes an id in the query string to render price and event details. 

     

    I cant find any documentation on a NotificationCenter .

    I'm having a bit of trouble. I'm trying to copy the starter kit code over to my existing site.

    Adding an item to cart works when i click the button /base/FormPost.aspx to post, but i cant figure out how to add the event id or price.

    Also, the mini-cart does not update until i do a page refresh - not a big issue atm.


     


  • Anders Burla 2560 posts 8256 karma points
    Apr 25, 2013 @ 10:03
    Anders Burla
    0

    You can do both things - create a node for each event with the price for that event. Or you can create one node to rule them all with no specific event info, BUT you will then need to make som custom .Net code to fetch the original unit prices for the events from your custom event DB. This is done by implementing your own version of our ProductInformationExtractor. I can send you some custom code to show you how the basic of that works. Just email us: info at teacommerce.net

    The Notification center is in the TeaCommerce.Api.Notifications.NotificationCenter

    Using the HTML api you cant specify the price - that has to be server secure. But you can send the event id as a property to the order line. You will need TC 2.0.1 because we changed the format of properties so we have more flexibility in that system. I can send you the latest build and some docs of how to add properties dynamicly to the order line in the HTML api.

    The reason is properly because if you class="ajaxForm" on your form and you have the tea-commerce.js script and the jquery.forms included. They do that "magic" of posting the form ajax style. So if you remove the class you will see a normal post and the site will refresh.

    Kind regards
    Anders

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 25, 2013 @ 11:19
    Anthony Dang
    0

    Thanks Anders

    I don't really want to create a node for each event as there apparently will be over 100,000 events.

    Also, I need to add a booking fee per ticket. The ticket price should not show the fee. The fee will be added at the end. The fee is a percentage of the ticket price, but the percentage is variable. eg. for tickets under £50, the fee is 10%, for tickets over £50, the fee is 8%, and for tickets over £80, the fee is 6%. Is something like that relatively easy to do with tea commerce?

    I'm emaling you now.

     

  • Anders Burla 2560 posts 8256 karma points
    Apr 25, 2013 @ 18:26
    Anders Burla
    0

    Yeah - then just create one node - because the default Umbraco/Tea Commerce implementation uses a node. The code I send you should be the base to create your own ProductInformationExtractor to fetch the price from your custom DB. If you use one node that should "simulate" all events then you need to specify the parameter "isUnique" when adding the order lines - because this will add each event ticket as a unique order line.

    The fee can be added as a new order line and you could use the event id to have as an property for your fee and then in the UI you know what fee should be displayed with each ticket. Again you properly need one node to simulate all fees and then in your ProductInformationExtractor you can code what price the fee should have. OR you can add the fee with a value of 0 if it is only in the cart that you need to show the fee. Then you can make a ProductCalculator. This is meant to be used to calc custom pricing without changing the original unit price.

    Kind regards
    Anders

  • Mike Chadwick 41 posts 182 karma points
    Sep 18, 2014 @ 18:38
    Mike Chadwick
    0

    I am doing a similar project and I wondered if you could give me some pointers on best approach. I'm doing a brandable ticket system for events and ticket selling. I'm not sure on the best strategy to go down yet but was thinking about using Umbraco/TeaCommerce as a starting point. I will end up with a shop for each client which have brands and events with brands and then selling tickets for those events. The tickets have various pricing tarifs including ticket offers between dates or max number available at that price range for example, early bird etc etc.

    Can you give any recommendations on architecture that would help me get started?

    Should I model all the events and tickets in Umbraco or go down the customDB route?

    Any help / pointers much appreciated..

    Thanks

    Mike

  • Anders Burla 2560 posts 8256 karma points
    Sep 19, 2014 @ 08:09
    Anders Burla
    0

    Hi Mike

    I think you should start by trying to use the Umbraco structure for the brands and tickets if its possible. If you find that Umbraco is too limited about this, then go custom.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft