It seems that letters can be entered into Qty boxes by default in Zen Cart. While I doubt this flows through to the shopping cart, wouldn't it make sense to restrict the input to numbers only??
Does anybody have an idea how to do this??
I assume it would be similar for product list and product info pages.
I tried changing the input type from text to number in product_listing.php
$lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) .
'</form>';
but that didn't work. Any suggestions?


Reply With Quote

