Merge pull request #676 from openclassify/diah

#2131 no add to card button on mobile
This commit is contained in:
Fatih Alp 2020-09-23 16:44:08 +03:00 committed by GitHub
commit 0090d28de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,4 +355,9 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
redirect('/login?redirect=' . url()->current())->send();
}
}
public function inStock()
{
return $this->is_get_adv && $this->stock;
}
}