Cart & Counter

There are two ways to manually get the numbers of items in a basket.
  1. 1.
    The preferred way would be to make an AJAX call to the API public endpoint for cart and loop over the elements to count the numberoftickets key Example HTML: Tickets in your basket: <span id="basket"></span> Example Jquery Javascript:
    $.get( "", function( data ) {
    data.forEach(function(data) {
    if(!isNaN(data.numberoftickets)) numberoftickets=numberoftickets+data.numberoftickets;
    $( "#basket" ).html(numberoftickets);
  2. 2.
    Or request the plain number by making a call to This call will return a plain number you can display anywhere.