Hi,
I have a drop-down that I've added in a product listing for the quantity to use with Add To Cart. When the page is displayed, the <select>...</select> statement changes to css display:none; and a pseudo drop-down is added. It looks nice, but doesn't function, or at least the quantity selected is ignored when the user clicks Add To Cart.
Here's the modified code as it appears in FireBug:
<div id="hikashop_product_quantity_field_4_chzn" class="chzn-container chzn-container-single chzn-container-single-nosearch" style="width: 158px;display:none;">
<a class="chzn-single" href="javascript:void(0)">
<span>(1) Sample $1.00 ea.</span>
<div>
<b></b>
</div>
</a>
<div class="chzn-drop" style="display: none; width: 156px; top: 25px;">
<div class="chzn-search">
<input type="text" autocomplete="off" style="width: 121px;">
</div>
<ul class="chzn-results">
<li id="hikashop_product_quantity_field_4_chzn_o_0" class="active-result result-selected" style="">(1) Sample $1.00 ea.</li>
<li id="hikashop_product_quantity_field_4_chzn_o_1" class="active-result" style="">(50) $12.50 ($0.25 ea.)</li>
<li id="hikashop_product_quantity_field_4_chzn_o_2" class="active-result" style="">(100) $24.00 ($0.24 ea.)</li>
<li id="hikashop_product_quantity_field_4_chzn_o_3" class="active-result" style="">(990) $217.80 ($0.22 ea.)</li>
</ul>
</div>
</div>
Here's the select before it's modified:
<select id="hikashop_product_quantity_field_4" name="data[4]" class="hikashop_listing_quantity_field_combo">
<option value='1'>(1) Sample $1.00 ea.</option>
<option value='50'>(50) $12.50 ($0.25 ea.)</option>
<option value='100'>(100) $24.00 ($0.24 ea.)</option>
<option value='990'>(990) $217.80 ($0.22 ea.)</option>
</select>
Is there a way to prevent the pseudo combo from being created? If not, how can I get the Add To Cart to recognize the value selected?
Thanks!