0
我已經爲Magento創建了一個簡單的autosum功能,它將顯示每行分組產品的總和,然後顯示總和列的總和。如何將定價添加到Magento上的定製autosum?
我的問題是如何讓層次的價格信息(例如,購買2 $ 83.49),並使用它的自動求和。以下是當DOM定價存在時的HTML代碼。我想通過jQuery來做,因爲我已經在使用它了。
<tr class="sum first odd">
<td>Product 1 Name</td>
<td class="a-right">
<div class="price-box">
<span id="product-price-125" class="regular-price">
<span class="price">$86.97</span>
</span>
</div>
<ul class="tier-prices-grouped product-pricing-grouped">
<li> Buy 2 for <span class="price"> $83.49 </span> each </li>
<li>Buy 4 for <span class="price"> $79.97 </span> each </li>
</ul>
</td>
<td class="a-center">
<input type="text" class="input-text qty" title="Qty" value="0" maxlength="12" name="super_group[125]">
</td>
<td class="a-right last">
<p class="total">0</p>
</td>
</tr>
正如你注意到,與<ul class="tier-prices-grouped">
部分這些<li>
的包含三層的價格..我怎麼繞過去獲取值‘2’和‘83.49’?
我正在使用jQuery來獲得總數。這是鏈接:http://jsfiddle.net/QmTNZ/2/
我希望得到一些建議。上帝保佑!