CI_Cart::has_options()

has_options($row_id = '')

Parameters:
  • $row_id (int) – Row ID to inspect
Returns:

TRUE if options exist, FALSE otherwise

Return type:

bool

Returns TRUE (boolean) if a particular row in the cart contains options. This method is designed to be used in a loop with contents(), since you must pass the rowid to this method, as shown in the Displaying the Cart example above.

doc_CodeIgniter
2016-10-15 16:30:59
Comments
Leave a Comment

Please login to continue.