Back to PhocacartCart class

Method getUnitId

public
getUnitId
()

Method getUnitId - Source code

public function getUnitId()
{
    if (isset($this->unit->id) && (int) $this->unit->id > 0) {
        return $this->unit->id;
    } else {
        return 0;
    }
}