#2131 no add to card button on mobile

This commit is contained in:
Diatrex 2020-09-22 17:09:55 +03:00
parent e3c5a11ebd
commit 42218c57fb

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;
}
}