javascript - How to get one element in simplecartjs? -
i using simplecartjs adding cart. need set element 1 one such name only, i'm using jsp web pages.
on simplecart.js still use default.
this code:
<div class="b-table-cart"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-12"> <div class="table-cart"> <div class="simplecart_items"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>product details</th> <th>unit price</th> <th>quantity</th> <th colspan="2">subtotal</th> </tr> </thead> <tbody> <tr class="wow fadeinleft"> <td class="product"> <div class="b-item-card"> <div class="product-image"> <a href="product-detail.html"> <img src="media/shopping-cart/fabric_ottaman.jpg" alt="/"> </a> </div> <div class="caption"> <p class="product-name"> carter ottoman <br> <span class="options">brand :: silverstok</span> </p> </div> </div> </td> <td class="price"> <div class="caption"> <p class="product-price"> $105.00 </p> </div> </td> <td class="quantity"> <div class="b-quantity"> <div class="input-group spinner" data-trigger="spinner"> <input type="text" data-rule="quantity" value="1"> <div class="spinner-btn"> <a class="btn btn-default" href="javascript:;" data-spin="up"><i class="fa fa-angle-up"></i></a> <a class="btn btn-default" href="javascript:;" data-spin="down"><i class="fa fa-angle-down"></i></a> </div> </div> </div> </td> <td class="subtotal"> <div class="caption"> <p class="product-price"> <span class="subtotal">$299.00</span> </p> </div> </td> <td class="clear text-center"> <button class="btn-clear"><span class="ef icon_trash_alt"></span></button> </td> </tr> <tr class="spacer"> <td colspan="5"></td> </tr> </tbody> </table> </div> </div> </div> <div class="cart-buttons clearfix"> <div class="pull-left"> <button class="btn btn-default btn-sm">clear cart</button>   <button class="btn btn-default btn-sm">update cart</button> </div> <div class="pull-right" style="padding-right: 25px;"> <button type="button" class="btn btn-primary-arrow btn-sm-arrow"> continue shopping <span class="ef icon_minus-06 "></span> <span class="ef arrow_right"></span> </button> </div> </div> </div> </div> </div> </div>
how set product-name or product-image imported simple cart item?
Comments
Post a Comment