SimpleCart(js)选择选项问题

时间:2012-09-11 01:26:42

标签: javascript jquery

我正在实施我的simpleCart项目,无法将尺寸选择转移到我的HTML或PayPal中的购物车部分。所有其他选项工作完美,除了大小???我很难过,请提前感谢您提供任何解决方案或帮助。 享受你的一天。

我的HTML:

<div id="myLB2"><h11>DNA</h11>
<div class="simpleCart_shelfItem">
<a class="item_add" href="javascript:;"><img src="./img/LB/dna2.jpg" width="250" height="280"></a>
<h14><select class="item_size">
<option value="xs">xs </option>
<option value="sm">sm </option>
<option value="md">md </option>
<option value="LG">LG </option>
<option value="XL">XL </option>
<option value="2X">2X </option>
<option value="3X">3X </option>
</select></h14>
<h15><span class="item_name">DNA</span><br/>
<span class="item_quantity"> 3 </span><br/>
<span class="item_price">$42.78</span></h15>
</div>

</div>
<div id="Storetotal">
<h12>Store</h12>

<h10>

<div>TOTAL<br/>
<span class="simpleCart_grandTotal"></span>
<a href="javascript:;" class="simpleCart_checkout">Checkout</a>
<span class="simpleCart_items"></span>

</div><br/>
</h10>  
</div>`

我的css:

h10{    
color: #1fbaf4;
font-family: Questrial ,Arial ,sans-serif;
font-size: 12px;
opacity:.35;}

h11{    
color: #000000;
font-family: Questrial ,Arial ,sans-serif;
font-size: 12px;
opacity:.9;}

h12{    
color: #1fbaf4;
position:fixed;
font-family: Questrial ,Arial ,sans-serif;
font-size: 14px;
opacity:.35;
right:12em;}

h14{    
color: #1fbaf4;
opacity:.18;
font: 12px; 
font-family: Questrial ,Arial ,sans-serif;
letter-spacing:-.1em;
position:absolute;
top:1.5em;
left:.1em;}

h15{    
color: #1fbaf4;
font-family: Questrial ,Arial ,sans-serif;
opacity:0;
font: 12px;
letter-spacing:-.12em;
position:absolute;
top:3.6em;
left:.1em;}

simpleCart:

// default options
settings = {
checkout    : { type: "PayPal", email: "yoursite.com" },
currency    : "USD",
language    : "english-us",
cartStyle   : "div",


cartColumns : [
{ attr: "size", label: true },
{ attr: "name", label: false },
{ attr: "quantity", label: false },
{ attr: "price", label: "SubTotal", view: 'currency' },
{ view: "decrement", label: false },
{ view: "increment", label: false },
{ view: "remove", text: "Remove", label: false }
],
excludeFromCheckout : ['thumb'],
shippingFlatRate    : 0,
shippingQuantityRate    : 12.79,
shippingTotalRate   : 0,
shippingCustom      : null,
taxRate         : 0.064,
taxShipping     : false,
data    : {}
},

0 个答案:

没有答案