Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function is_available() {
- if ($this->_is_available === null) {
- $this->_is_available = true;
- $el = $this->element();
- if ($el['ACTIVE'] == 'N')
- $this->_is_available = false;
- if ($this->quantity() == 0)
- $this->_is_available = false;
- }
- return $this->_is_available;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement