</tbody> </table> </div> </div> <hr style="width: 100%; color: black; height: 1px; background-color: black;" /> <div class="row"> <div class="col-sm-4"></div> <div class="col-sm-4"></div> <div class="col-sm-4"> <p id ="ordersSubTotal">Sub Total: $<?php echo priceOfItemsInCart($uid); ?> </p> <p id ="ordersTax">Tax: $<?php echo taxforItemsInCart($uid); ?> </p> <form method="post" action=""> <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#myModal" id="shippingButton">Select Shipping Method</button> </div> </div> <hr style="width: 100%; color: black; height: 1px; background-color: black;" /> <div class="row"> <div class="col-sm-4"></div> <div class="col-sm-4"></div> <div class="col-sm-4"> <p id="ordersTotal">Total: $<?php
function orderTotal($uid) { $subTotal = priceOfItemsInCart($uid); $tax = taxforItemsInCart($uid); $total = $subTotal + $tax; return $total; }