Help for this page

Select Code to Download


  1. or download this
        my $is_logged_in= $user && $user->id() != User->anonymous_id();
        my $has_guest_coupon= $cookie
            && $cookie->is_for_guest() && ! $cookie->is_expired();
        if(  $is_logged_in  ||  $has_guest_coupon  ) {
    
  2. or download this
        if(  is_logged_in($user)  ||  has_guest_coupon($cookie)  ) {