Function Hook_ecommerce_work->process_needed_fields

Definitions

sources/hooks/systems/ecommerce/work.php

  • Get the filled in fields and do something with them.May also be called from Admin Zone to get a default purchase ID (i.e. when there's no post context).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$type_code ID_TEXT required parameter N/A N/A The product codename
$from_admin boolean False N/A N/A Whether this is being called from the Admin Zone. If so, optionally different fields may be used, including a purchase_id field for direct purchase ID input.

Return

  • A pair: The purchase ID, a confirmation box to show (null for no specific confirmation)
  • Type: array
  • Set: N/A
  • Range: N/A