Function Module_purchase->_check_can_afford

Definitions

site/pages/modules/purchase.php

  • Check to see if the current user can afford a product.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$type_code ID_TEXT required parameter N/A N/A The product code

Return

  • Error screen (null: no error)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A