Sunnysideup\Ecommerce\Api\ShoppingCart::currentOrder
Gets or creates the current order.
Based on the session ONLY unless the order has been explictely set. IMPORTANT FUNCTION! returns null if the current user does not allow order manipulation or saving (e.g. session disabled) However, you can pass an order in case you want to manipulate an order that is not in sesssion
Signature
public function currentOrder([integer
$recurseCount = 0,
[Order
$order = NULL]] )
Parameters
Returns
- Order