deathlord
OpenCart-TR
- Katılım
- 24 Tem 2010
- Mesajlar
- 30
- Tepkime puanı
- 0
- Puanları
- 6
- Yaş
- 38
- Konum
- Tekirdağ
- Web sitesi
- www.upbilisim.net
arkadaşlar ürünün stoğu bittiğinde satın al butonu nasıl deaktif olması sağlanır.
<div class="content">
<?php echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>
<?php echo '<!-- STOCK: '.$this->language->get('text_instock').' -->'; ?>
<?php if($stock === $this->language->get('text_instock') || (strlen($stock) == strlen((int)$stock) && $stock > 0)): ?>
<div class="content">
<?php echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>
<?php endif; ?>
<div class="content">
<?php if($product_info['quantity'] == '0') { echo $stock; } else { echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php } ?>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>
<div class="content">
<?php if($product_info['quantity'] == '0') { ?><a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true" class="button"><span><?php echo "<< Geri"; ?></span></a><?php echo $stock;} else { echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php } ?>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>