"Shopping Cart BS 3"
Bootstrap 3.0.0 Snippet by amatellanes

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-10 col-md-offset-1"> <table class="table table-hover"> <thead> <tr> <th>Product</th> <th>Quantity</th> <th class="text-center">Price</th> <th class="text-center">Total</th> <th> </th> </tr> </thead> <tbody> <tr> <td class="col-sm-8 col-md-6"> <div class="media"> <a class="thumbnail pull-left" href="#"> <img class="media-object" src="http://icons.iconarchive.com/icons/custom-icon-design/flatastic-2/72/product-icon.png" style="width: 72px; height: 72px;"> </a> <div class="media-body"> <h4 class="media-heading"><a href="#">Product name</a></h4> <h5 class="media-heading"> by <a href="#">Brand name</a></h5> <span>Status: </span><span class="text-success"><strong>In Stock</strong></span> </div> </div></td> <td class="col-sm-1 col-md-1" style="text-align: center"> <input type="email" class="form-control" id="exampleInputEmail1" value="3"> </td> <td class="col-sm-1 col-md-1 text-center"><strong>$4.87</strong></td> <td class="col-sm-1 col-md-1 text-center"><strong>$14.61</strong></td> <td class="col-sm-1 col-md-1"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"></span> Remove </button></td> </tr> <tr> <td class="col-md-6"> <div class="media"> <a class="thumbnail pull-left" href="#"> <img class="media-object" src="http://icons.iconarchive.com/icons/custom-icon-design/flatastic-2/72/product-icon.png" style="width: 72px; height: 72px;"> </a> <div class="media-body"> <h4 class="media-heading"><a href="#">Product name</a></h4> <h5 class="media-heading"> by <a href="#">Brand name</a></h5> <span>Status: </span><span class="text-warning"><strong>Leaves warehouse in 2 - 3 weeks</strong></span> </div> </div></td> <td class="col-md-1" style="text-align: center"> <input type="email" class="form-control" id="exampleInputEmail1" value="2"> </td> <td class="col-md-1 text-center"><strong>$4.99</strong></td> <td class="col-md-1 text-center"><strong>$9.98</strong></td> <td class="col-md-1"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"></span> Remove </button></td> </tr> <tr> <td>   </td> <td>   </td> <td>   </td> <td><h5>Subtotal</h5></td> <td class="text-right"><h5><strong>$24.59</strong></h5></td> </tr> <tr> <td>   </td> <td>   </td> <td>   </td> <td><h5>Estimated shipping</h5></td> <td class="text-right"><h5><strong>$6.94</strong></h5></td> </tr> <tr> <td>   </td> <td>   </td> <td>   </td> <td><h3>Total</h3></td> <td class="text-right"><h3><strong>$31.53</strong></h3></td> </tr> <tr> <td>   </td> <td>   </td> <td>   </td> <td> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-shopping-cart"></span> Continue Shopping </button></td> <td> <button type="button" class="btn btn-success"> Checkout <span class="glyphicon glyphicon-play"></span> </button></td> </tr> </tbody> </table> </div> </div> </div>

Related: See More


Questions / Comments:

Awesome snippet!

Tberry Apapa () - 11 years ago - Reply 0


Maybe only show the remove button text if greater than mobile display and only show icon? (use hidden-xs class on the text)
Otherwise pretty sweet!

Jay El-Kaake () - 11 years ago - Reply 0


Hi, great idea but this snippet isn't responsive at all... I mean, I basically tried seeing what it looks like when used on devices with a max-width of 400px and it just breaks apart. I do think you should revise your code as there are better ways to make this work for all devices!

Adedoyin Kassem () - 11 years ago - Reply 0


I agree, beautiful snippet but can someone make it responsive :) I'll crack at it. What does one do if they improve an existing snippet? (noob question, sorry)

Ryan Harmon () - 11 years ago - Reply 0


Be sure to update the community if/when you get to make it responsive... Would love to see that happen! *wink*

Adedoyin Kassem () - 11 years ago - Reply 0


thats awesome.....thanks ametellanes n bootsnipp

uzzal () - 11 years ago - Reply 0