我无法在simplecart的结帐时显示2个自定义属性以显示大小或颜色。我能够为每列生成标题,但我的两个自定义属性中没有显示任何数据。其他所有东西都在正确的位置,并在我的整个网站上工作,但无论我做什么,我都无法在表格中显示尺寸或颜色属性。
HTML:
<h2 class="item_name">Peace on Earth T-Shirt</h2>
<img src="../images/products/decals/poep.png">
<span class="item_price"><h3>$17.99</h3></span>
<select class="item_size">
<option value="Small"> Small </option>
<option value="Medium"> Medium </option>
<option value="Large"> Large </option>
</select>
<input type="text" value="1" maxlength="2" size="2" class="item_Quantity">
<br>
<p><a class="item_add" href="javascript:;">Add to Cart!</a></p>
</div>
</div>
<div class="content-three-last" id="footer-right">
<div class="simpleCart_shelfItem">
<h2 class="item_name">Find Him Window Decal</h2>
<img src="../images/products/decals/fhw.png">
<span class="item_price"><h3>$3.99</h3></span>
<select class="item_color">
<option value="White"> White </option>
<option value="Pink"> Pink </option>
</select>
jquery的:
cartStyle : "div",
cartColumns : [
{ attr: "name", label: "Name" },
{ attr: "size", label: "Size" },
{ attr: "color", label: "Color" },
{ attr: "price", label: "Price", view: 'currency' },
{ view: "decrement", label: false },
{ attr: "quantity", label: "Qty" },
{ view: "increment", label: false },
{ attr: "total", label: "SubTotal", view: 'currency' },
{ view: "remove", text: "Remove", label: false }
],
结果:
购物车
名称尺寸颜色价格数量小计
Find Him Window Decal $ 3.99 - 1 + $ 3.99删除
Peace on Earth T恤$ 17.99 - 1 + $ 17.99删除
总 $ 21.98
我无法发布结果图片,但当我在表格中突出显示时,这2列中没有任何信息被选中,所以任何帮助都将不胜感激!