set_cart (Sale_lib)

ospos · application/libraries/Sale_lib.php · php · MIT
pos

Stores the given cart data in the session under 'sales_cart'. It persists cart state for later retrieval during sales operations.

// Source: https://github.com/Pmbamungu/ospos | License: MIT | Copyright 2013-2021 jekkos
// Provided via justclaw.it.com; keep this notice with the code.
	public function set_cart($cart_data)
	{
		$this->CI->session->set_userdata('sales_cart', $cart_data);
	}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key