/*
* Used in checkout to check products when adding or updating cart
*/
public function canDisplayAddtocartAdvanced($item)
{
if ($this->canDisplayAddtocart()) {
if (isset($item->id) && (int) $item->id > 0) {
if ($item->type == 3) {
// PRODUCTTYPE - price on demand product cannot be added to cart
// PhocacartLog::add(3, 'Warning', $item->id, 'Product could not be added to cart or ordered because its type (Product on demand) does not allow it' . ' ' . JText::_('COM_PHOCACART_PRODUCT'). ': ' . $item->title );
return false;
} else {
return true;
}
}
}
return false;
}