如果我要將simple_cart ShelfItem放在表中,我將如何能夠使「添加到購物車」工作? 我仍然無法找到一種方法來完成這項工作。 我正在使用eshopper模板,其中包含購物車物品的部分ID等。但是,如果我將Simplecart JavaScript放入,等等,當我按添加到購物車時,它將無法正常工作。有人請教我如何使用這個,謝謝。SimpleCart JS shelfItem在表中?
對不起,我counldt找到答案或我不知道該怎麼做。
編輯:添加購物車正在工作我猜?至少能夠使「數量」增加,或能夠清空購物車,但現在價格沒有更新,我做錯了什麼?
<section id="cart_items">
<div class="container">
<div class="breadcrumbs">
<ol class="breadcrumb">
<li><a href="User/HomePage.aspx">Home</a></li>
<li class="active">Shopping Cart</li>
</ol>
</div>
<div class="table-responsive cart_info">
<table class="table table-condensed">
<thead>
<tr class="cart_menu">
<td class="image">Item</td>
<td class="description">Description</td>
<td class="price">Price</td>
<td class="quantity">Quantity</td>
<td class="total">SubTotal</td>
</tr>
</thead>
<tbody>
<div class="simpleCart_shelfItem">
<tr>
<td class="cart_product">
<img src="Images (Books)/Images/511SkrkMNCL.jpg" alt="Star Wars Character Encyclopedia" class="item_thumb" thumb="Images (Books)/Images/thumb/511SkrkMNCL.jpg" style="width: 133px; height: 168px;"/>
</td>
<td class="cart_description">
<h4 class="item_name">Star Wars Character Encyclopedia</h4>
</td>
<td class="cart_price">
<span class="item_price">$35.99</span><br />
</td>
<td class="cart_quantity">
<a href="javascript:;" class="simpleCart_increment">+</a>
<p> <input type="text" value="1" class="item_Quantity"/> <br>
<a href="javascript:;" class="simpleCart_decrement">-</a>
<br />
<a href="#" onclick="simpleCart.add('name=Star Wars Character Encyclopedia','price=$35.99','image=Images (Books)/Images/thumb/511SkrkMNCL.jpg');return false;"> Add to Cart</a>
</td>
<td class="cart_total">
<span class="simpleCart_total"></span>
</td>
</tr>
<tr>
<td class="cart_product">
<img src="Images (Books)/Images/81rH-DQqQOL.jpg" alt="Percy Jackson and the Olympians 5 Book " class="item_thumb" thumb="Images (Books)/Images/thumb/81rH-DQqQOL.jpg" style="width: 133px; height: 168px;"/>
</td>
<td class="cart_description">
<h4 class="item_name">Percy Jackson and the Olympians 5 Book </h4>
</td>
<td class="cart_price">
<span class="item_price">$80.99</span>
</td>
<td class="cart_quantity">
<p> <input type="text" value="1" class="item_Quantity"/> <br>
<br />
<a href="#" onclick="simpleCart.add('name=Percy Jackson and the Olympians 5 Book','price=80.99','image=Images (Books)/Images/thumb/81rH-DQqQOL.jpg');return false;"> Add to Cart</a>
</td>
<td class="cart_total">
<span class="simpleCart_total"></span>
</td>
</tr>
<tr>
<td class="cart_product">
<img src="Images (Books)/Images/51mGJ4PmMzL.jpg" alt="Star Wars: The Jedi Path" class="item_thumb" thumb="Images (Books)/Images/thumb/51mGJ4PmMzL.jpg" style="width: 133px; height: 168px;"/>
</td>
<td class="cart_description">
<h4 class="item_name">Star Wars: The Jedi Path</h4>
</td>
<td class="cart_price">
<span class="item_price">$30.99</span>
</td>
<td class="cart_quantity">
<p> <input type="text" value="1" class="item_Quantity"/> <br>
<br />
<a href="#" onclick="simpleCart.add('name=Star Wars: The Jedi Path','price=30.99','image=Images (Books)/Images/thumb/51mGJ4PmMzL.jpg');return false;"> Add to Cart</a>
</td>
<td class="cart_total">
<span class="simpleCart_total"></span>
</td>
</tr>
<tr>
<td class="cart_product">
<img src="Images (Books)/Images/81cm6ZST7tL.jpg" alt="The Return of Nagash (The End Times)" class="item_thumb" thumb="Images (Books)/Images/thumb/81cm6ZST7tL.jpg" style="width: 133px; height: 168px;"/>
</td>
<td class="cart_description">
<h4 class="item_name">The Return of Nagash (The End Times)</h4>
</td>
<td class="cart_price">
<span class="item_price">$50.99</span>
</td>
<td class="cart_quantity">
<p> <input type="text" value="1" class="item_Quantity"/> <br>
<br />
<a href="#" onclick="simpleCart.add('name=The Return of Nagash (The End Times)','price=50.99','image=Images (Books)/Images/thumb/81cm6ZST7tL.jpg');return false;"> Add to Cart</a>
</td>
<td class="cart_total">
<span class="simpleCart_total"></span>
</td>
</tr>
<tr>
<td class="cart_product">
<img src="Images (Books)/Images/51m3gTdOteL.jpg" alt="Star Wars: Darth Vader and the Ghost Prison" class="item_thumb" thumb="Images (Books)/Images/thumb/51m3gTdOteL.jpg" style="width: 133px; height: 168px;"/>
</td>
<td class="cart_description">
<h4 class="item_name">Star Wars: Darth Vader and the Ghost Prison</h4>
</td>
<td class="cart_price">
<span class="item_price">$65.99</span>
</td>
<td class="cart_quantity">
<p> <input type="text" value="1" class="item_Quantity"/> <br>
<br />
<a href="#" onclick="simpleCart.add('name=Star Wars: Darth Vader and the Ghost Prison<','price=65.99','image=Images (Books)/Images/thumb/51m3gTdOteL.jpg');return false;"> Add to Cart</a>
</td>
<td class="cart_total">
<span class="simpleCart_total"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</section> <!--/#cart_items-->
任何人?我需要儘快完成我在學校的小項目。感謝您是否有任何幫助:D – 2015-02-12 22:30:54