load_from_db_by_name( (string)\S::get( 'coupon' ) ); if ( $coupon -> is_available() ) \S::set_session( 'coupon', $coupon ); else \S::alert( 'Podany kod rabatowy jest nieprawidłowy.' ); header( 'Location: /koszyk' ); exit; } }