public function isCollection()
    {
        if (Checkout::config()->click_and_collect) {
            $type = Session::get("Checkout.Delivery");
            
            return ($type == "collect") ? true : false;
        } else {
            return false;
        }
    }
public function isCollection()
    {
        if (Checkout::config()->click_and_collect) {
            $type = Session::get("Checkout.Delivery");
            
            return ($type == "collect") ? true : false;
        } else {
            return false;
        }
    }
public function isCollection ( ) { if ( Checkout :: config ( ) -> click_and_collect ) { $ type = Session :: get ( "Checkout.Delivery" ) ; return ( $ type == "collect" ) ? true : false ; } else { return false ; } }
Are we collecting the current cart? If click and collect is
disabled then this returns false, otherwise checks if the user
has set this via a session.

@return Boolean
Are we collecting the current cart? If click and collect is disabled then this returns false otherwise checks if the user has set this via a session .