Then to manage the error message, test this, I am not done testing this idea, but see how it works for you ...
Edit the file:
/includes/classes/shopping_cart.php
and add the code in RED:
Code:
// Check Quantity Units if not already an error on Quantity Minimum
if ($fix_once == 0) {
$check_units = $products->fields['products_quantity_order_units'];
// if ( fmod_round($check_quantity,$check_units) != 0 ) {
if ( fmod_round($check_quantity,$check_units) != $check_units && fmod_round($check_quantity,$check_units) != 0) {
$_SESSION['valid_to_checkout'] = false;
$_SESSION['cart_errors'] .= ERROR_PRODUCT . $products->fields['products_name'] . ERROR_PRODUCT_QUANTITY_UNITS_SHOPPING_CART . ERROR_PRODUCT_QUANTITY_ORDERED . $check_quantity . ' <span class="alertBlack">' . zen_get_products_quantity_min_units_display((int)$prid, false, true) . '</span> ' . '<br />';
}
}
// Verify Valid Attributes
Bookmarks