Ejemplo n.º 1
0
                </div>
                <form action="index.php" method="POST">
                    <div class="add-product">                        
                        <input type="text" id="product_name" name="product_name" placeholder="Product Name" value="<?php 
echo $validation_name;
?>
">
                        <button type="submit" name="update_cart_action" value="add_product" title="Add Product" id="add_product_button">Add Product</button>                                        
                        <span class="validation-error"><?php 
echo $validation_error;
?>
</span>
                    </div>
                    
                    <?php 
if ($cart->get_items()) {
    ?>
                                        
                    <table class="cart-table">
                        <colgroup>
                            <col width="30%">
                            <col width="17.5%">
                            <col width="17.5%">
                            <col width="17.5%">
                            <col width="17.5%">                        
                        </colgroup>
                        <thead>
                            <tr>
                                <th class="a-left" rowspan="1">Product Name</th>
                                <th class="a-right" rowspan="1">Price</th>                            
                                <th class="a-center" rowspan="1">Qty</th>