This commit is contained in:
vedatakd 2019-09-13 15:58:25 +03:00
parent bead0fe594
commit 2cd465158b

View File

@ -266,8 +266,8 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
{
$adv = $this->getAdv($id);
$stock = $adv->stock;
if ($stock == NULL or $stock == 0 or $stock == "0") {
return "false";//Ürün yok ise ve 0 ise
if ($stock == NULL or $stock == 0) {
return "false";
} elseif ($stock < $quantity) {
return "false";//Adet yetmiyorsa
} else {