Found a solution from someone else's code:
In administrator/components/com_virtuemart/html/checkout.index.php you will need to insert the following
After line if( in_array('CHECK_OUT_GET_FINAL_CONFIRMATION', $checkout_steps[$current_stage]) ) {
$next_page = 'checkout.thankyou';
if( sizeof($checkout_steps[$current_stage]) > 1 ) {
include_once( PAGEPATH . 'basket.php' );
} else {
include_once( PAGEPATH . 'ro_basket.php' );
}
} else {
$next_page = 'checkout.index';
include_once( PAGEPATH . 'basket.php' );
}
insert the following:
/* mod to check for minimum item number in cart */
if ($cart["idx"] == 0) {
echo $VM_LANG->_PHPSHOP_EMPTY_CART;
$checkout = False;
}
else {
for ($i=0;$i<$cart["idx"];$i++) {
$db->setQuery("SELECT product_packaging FROM #__{vm}_product WHERE product_id='" . $cart[$i]["product_id"] . "' ");
$multipleof = "6";
$mincartqt = "12";
$total_count = $total_count + ($cart[$i]["quantity"]);
$total_count_in = $total_count_in + ($cart[$i]["quantity"]);
}
if (($total_count%($multipleof) !== 0 ) OR ($total_count < ($mincartqt) )) {
echo $basket_html;
?>
<div align="center">
<script type="text/javascript">alert('<?php echo 'Order quantities must be a multiple of six, with the minimum order quantity being one case of 12 bottles [eg:12,18,24...]' ?>');</script>
<strong><?php echo $VM_LANG->_('test') ?></strong><br />
<strong><?php echo 'Order quantities must be a multiple of six, with the minimum order quantity being one case of 12 bottles [eg:12,18,24...]' ?></strong>
<?php echo '<br>' ?>
<strong><?php echo 'Your current order quantity is '. " ".$total_count ?></strong>
</div><?php
return;
//mosRedirect( $sess->url( 'index.php?page=shop.cart' ) );
}
}
/* end minimum items in cart mod */
This creates a minimum order quantities that must be a multiple of six, with the absolute minimum quantity being one case of 12... Bingo