function getCartDetails()
{
    return array('code' => 200, 'items' => count($_SESSION['cart']), 'price' => calculateCartPrice());
}
        echo $item['price'];
        ?>
</td>
                        </tr>
                    <?php 
    }
    ?>
                    <tr>
                        <td></td>
                        <td><h4 class="text-primary">Grand total</h4></td>
                        <td>Total Items: <?php 
    echo count($cartItems);
    ?>
</td>
                        <td><?php 
    echo calculateCartPrice();
    ?>
 $</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="col-md-8 text-right pull-right">
                <form method="post">
                    <input name="redeem" type="text" class="form-control" max="<?php 
    echo $maximumRedemption;
    ?>
" placeholder="Redeem from wallet" />
                    <p class="alert alert-success alert-dismissable col-md-6">You will get <img width="24" src="images/gold.png" /> <?php 
    echo $reward_points['award'];
    ?>