Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1.  else if ( empty($results) ) {
  2.             $result['success'] = 0;
  3.             $result['error'] = __( ' Product cannot be delivered to your zipcode.check out what is coming to your neighborhood in the future', 'sidebar_zip_code_checker' );
  4.             $result['error2'] = __('TATATAAA, your zip isnt supported','sidebar_zip_code_checker');
  5.        
  6.         } else {
  7.             $result['success'] = 0;
  8.             $result['error'] = __( 'Please enter a valid zip code.', 'sidebar_zip_code_checker' );
  9.         }
  10.  
  11.        
  12.         echo json_encode( $result );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement