get_cart (Receiving_lib)

ospos · application/libraries/Receiving_lib.php · php · MIT
pos, tag:session-access, tag:cart-retrieval, tag:lazy-init

Retrieves the receiving cart from session, initializing it to an empty array if not already set.

// 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 get_cart()
	{
		if(!$this->CI->session->userdata('recv_cart'))
		{
			$this->set_cart(array());
		}

		return $this->CI->session->userdata('recv_cart');
	}

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

Get a free API key