Function Hook_ecommerce_cart_orders->get_actual_cart_order

Definitions

sources/hooks/systems/ecommerce/cart_orders.php

  • Copy a member's shopping cart into an actual cart order and modify the search string with the new ID.Call when using CART_ORDER as the type code to modify it to CART_ORDER_{ID}.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$search ID_TEXT Yes No required parameter CART_ORDER N/A 'CART_ORDER' (type code passed by reference to be modified with the CART_ORDER_{ID})

Preview

Code (PHP)

/**
 * Copy a member's shopping cart into an actual cart order and modify the search string with the new ID.Call when using CART_ORDER as the type code to modify it to CART_ORDER_{ID}.
 *
 * @param  ID_TEXT $search 'CART_ORDER' (type code passed by reference to be modified with the CART_ORDER_{ID})
 * @set CART_ORDER
 */

protected function get_actual_cart_order(string &$search)