i try to add to cart 1122.24, but can only get as far as 1122.2, wont let me get beyond that from product info page, but once in cart can add in the 4 then, how do i change this
Printable View
i try to add to cart 1122.24, but can only get as far as 1122.2, wont let me get beyond that from product info page, but once in cart can add in the 4 then, how do i change this
One place to look is the units for the product in the product informtion page. Generally speaking items are added in whole numbers, so setting up to accept decimals is one part, then setting up for hundreths is yet another.
Verify that on the product page for the item(s) in question any amount identified in the units box. If it currently is 0.1 or not 1, then please report. There may be other configuration settings to adjust.
Units should be:
.01
as you want .24 to work ...
Next, you need to update your template using your templates and overrides for:
Then you need to adjust the setting for how many decimals you allow on quantity in the Configuration ... Stock ... and set this to 2:Code:if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" " maxlength="8" size="8" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="8" size="8" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
Quote:
Product Quantity Decimals
Allow how many decimals on Quantity
0= off
0
1
2
3
Thank you
517.8 does not work
517.81 works
how do i get both Decimals working?
Warning Please update your order.
The item: SFI Floors Highlands 12.3mm Laminate Flooring-Barnwood ... Quantity Units errors -
You ordered a total of: 517.8 Min: 17.26 Units: 17.26
30 x 17.26 is 517.8
517.80, Does that work? Seeing as two decimals works. Doesn't seem right that 517.81 works. Does 517.82 or another number up to the next multiple work also?
Zen-cart makes the 0 disapear
2 decimals or even a whole number work, as you can see from earlier in this post i did that to get it to work with to decimals