This is just a Shopping Cart tutorial and will not provide any real services.

Compass Programming

Shopping Cart

Straight forward enough. Just display what was just selected for purchase and select the quantity. The below is just all wrapped inside the php code. This is sandwiched into a form.
$quantityDesired = ' Order QTY: <input name="quantityWant" id="general" type="number" class="qty" value="'.$quantityAsked.'" min="1" max="'.$quantity.'" > Price will be adjusted on adding to cart'; $showProduct .= '<div><h3><span class="bigImage">'.$imageView.'</span><span class="fullWords"><input name="productId" id="productId" type="hidden" value="'.$productId.'">'.$manufacturer.'- '.$name.'<br>'.$description.'<br> Price: $'.$price.'&nbsp&nbsp '.$quantityDesired.'<br>Quantity Available: '.$quantity.'<br><input name="submit" id="submit" value="Add to Cart" type="submit" class="allLookup" style="margin-top:25px"></span></h3></div>';

Verify this is the item you want and add quantity to continue shopping.

Dark Horse- 300
Frank Miller and Dark Horse Comics - The armies of Persia—a vast horde greater than any the world has ever known—are poised to crush Greece, an island of reason and freedom in a sea of madness and tyranny. Standing between Greece and this tidal wave of destruction are a tiny detachment of but three hundred warriors. 88 page Hard cover book.
Price: $20.00   Order QTY: Price will be adjusted on adding to cart
Quantity Available: 95

All products on this website for tutorial purposes only. No real transactions are conducted on this shopping cart tutorial. Last Update to these pages was 13 April 2020

Questions or comments please send them to josh(at)compassprogramming.com. Thank you!

Compass Programming LLC all rights reserved 2024

Return to Compass Programming home page.