1

我正在实施我的 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;}

简单购物车:

// 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    : {}
},
4

0 回答 0