In the file flatsome/inc/functions/function-update.php, near the bottom of the file, find function
wupdates_prevalidate_purchase_code_JQ9eJ ( $purchase_code )
Add this to the start of the function code:
return true;
Then in the function wupdates_process_purchase_code_JQ9eJ which starts around line 213 comment out lines 245-248 like this:
// $raw_response = wp_remote_post( $url, $http_args );
// if ( $ssl && is_wp_error( $raw_response ) ) {
// $raw_response = wp_remote_post( $http_url, $http_args );
// }
Do the same thing with lines 251-253 like this:
// $errors[] = __( 'We are sorry but we couldn\'t connect to the verification server. Please try again later.', 'wupdates' ) . '<span class="hidden">' . print_r( $raw_response, true ) . '</span>';
// } else {
// $response = json_decode( $raw_response['body'], true );
And right underneath that add this:
$response['purchase_code'] = 'valid';
$response['raw_response']['sold_at'] = 'April 1 2017'; $response['raw_response']['supported_until'] = 'Jan 23 2023'; $response['raw_response']['buyer'] = 'festingerbhw.com';
Change the details to whatever you want and now use any key to activate the theme.