Кароче тут такое дело написал скрипт плюс минус количества товара не как не могу запретить больше определенного количества так то оно работает но работает после второго нажатия вот код
<?php echo $header; ?>
<link rel="stylesheet" href="catalog/view/javascript/jquery/colorbox/colorbox.css?j2v=2.4.12"/>
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox-min.js?j2v=2.4.12"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox.js"></script>
<div class="hea_tit"><?php echo $heading_title; ?></div>
<div class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
<?php echo $column_left; ?>
<?php echo $column_right; ?>
<div id="content">
<?php echo $content_top; ?>
<p class="serc_art"><?php echo $text_search; ?></p>
<?php if ($products) { ?>
<div class="product-filter">
<div class="filtr2">
<div class="f_manu">
<p>Производитель</p>
</div>
<div class="f_name">
<p>Наименование</p>
</div>
<div class="f_articl">
<p>Артикул</p>
</div>
<div class="f_nal">
<p>Нал</p>
</div>
<div class="f_sklad">
<p>Мин кол-во</p>
</div>
<div class="f_price">
<p>Цена</p>
</div>
<div class="f_kupit">
<p>Купить</p>
</div>
</div>
</div>
<div class="product-list">
<?php foreach ($products as $product) { ?>
<div class="p_list">
<div class="manufacturer">
<a onFocus="this.blur()" class="man_id" href="<?php echo $product['href']; ?>">
<?php echo $product['manufacturer']; ?> 
</a>
</div>
<div class="name"><?php echo $product['name']; ?></div>
<div class="model">
<?php if (!$logged) { ?>
<?php echo $product['model1']; ?>
<?php } else { ?>
<?php echo $product['model']; ?>
<?php } ?>
</div>
<div class="quantity">
<div id="quant">
<?php echo $product['quantity']; ?>
</div>
<span>шт</span>
</div>
<div class="min_quan">
<span>по</span>
<div id="min_quan">
<?php echo $product['minimum']; ?>
</div>
<span>шт</span>
</div>
<?php if ($product['price']) { ?>
<?php } ?>
<?php if ($product['rating']) { ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
<?php } ?>
<div class="price">
<?php if (!$product['special']) { ?>
<?php echo $product['price']; ?>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
<?php if ($product['tax']) { ?>
<br />
<span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
<?php } ?>
</div>
<div class = "quan_col">
<span class="my_minus">-</span>
<td class="quantity"><input class="quant" type="text" name="quantity" id="quantity" value="<?php echo $product['minimum']; ?>" size="1" readonly="readonly"/></td>
<span class="my_plus">+</span>
<?php if (!$logged) { ?>
<div class="cart">
<input onFocus="this.blur()" type="button" value="В Корзину" class="button_cart1" />
</div>
<?php } else { ?>
<div class="cart">
<input onFocus="this.blur()" type="button" value="В Корзину" onclick="addToCart('<?php echo $product['product_id']; ?>', $(this).parent().parent().parent().find('#quantity').val());" class="button_cart" />
</div>
<?php } ?>
</div>
<div id="else_log" >
<?php if (!$logged) { ?>
<?php } else { ?>
<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>
<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<?php } else { ?>
<div class="content">
<div class="art_now">
<?php echo $text_empty; ?>
</div>
</div>
<?php }?>
<?php echo $content_bottom; ?>
</div>
<script type="text/javascript">
function display(view) {
if (view == 'list') {
$('.product-list > div').each(function(index, element) {
html = '<div class="right">';
html += '</div>';
html += '<div class="manufacturer">' + $(element).find('.manufacturer').html() + '</div>';
html += '<div class="name">' + $(element).find('.name').html() + '</div>';
html += '<div class="model">' + $(element).find('.model').html() + '</div>';
html += '<div class="quantity">' + $(element).find('.quantity').html() + '</div>';
html += '<div class="min_quan">' + $(element).find('.min_quan').html() + '</div>';
var price = $(element).find('.price').html();
if (price != null) {
html += '<div class="price">' + price + '</div>';
}
html += '<div class="quan_col">' + $(element).find('.quan_col').html() + '</div>';
html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';
var rating = $(element).find('.rating').html();
if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}
})
}
}
</script>
<script>
$(function ()
{
$(".man_id").colorbox({
iframe:true, innerWidth:400, innerHeight:500
});
$(".button_cart1").colorbox({
html:'<div class="warn_cart">Использовать корзину можно только</br> после авторизации !!</div><iframe src="index.php?route=account/login" style="width: 300px; height: 400px;"></iframe>'
});
})
</script>
<?php echo $footer; ?>
$(document).ready(function() {
$('.my_minus').click(function () {
var quantity = $(this).parent().parent().find('#quant').html();
var min_quan = $(this).parent().parent().find('#min_quan').html();
var input_val = $(this).parent().find('.quant').val();
var input = $(this).parent().find('.quant');
if(min_quan < Number(input_val)) {
input.val(Number(input_val) - Number(min_quan))
}
else if(Number(input_val) < min_quan) {
input.val(min_quan);
}
});
$('.my_plus').click(function () {
var quantity = $(this).parent().parent().find('#quant').html();
var min_quan = $(this).parent().parent().find('#min_quan').html();
var input_val = $(this).parent().find('.quant').val();
var input = $(this).parent().find('.quant');
if(Number(quantity) > Number(input_val)) {
input.val(Number(input_val) + Number(min_quan));
}
if(Number(quantity) < Number(input_val)) {
input.val(Number(quantity));
}
});
});