我正在使用 simplecart js。我无法让产品图像的图像源与购物车中的产品信息一起出现。
图片来源未定义,见demo http://jsfiddle.net/z7xW4/15/
我使用以下代码创建列
<div class="simpleCart_shelfItem">
<img alt="image" src="http://placehold.it/100x100" class="item-image"/>
<a href="javascript:;" class="item_add">Add to Cart</a>
大车
simpleCart({
checkout: {
type: "PayPal",
email: "you@yours.com"
},
cartColumns: [
{view:'image' , attr:'thumb', label: false},
{ attr: "price" , label: "Price", view: 'currency' } ,
{ attr: "quantity" , label: "Qty" } ,
{ attr: "total" , label: "SubTotal", view: 'currency' } ,
{ view: "remove" , text: "Remove" , label: false }
],
cartStyle: "table"
});