mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
edited
This commit is contained in:
parent
bead0fe594
commit
2cd465158b
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user