dimitre5678
New member
- Jun 20, 2018
- 20
- 5
- 3
In the file flatsome/inc/functions/function-update.php
Near the bottom of the file, find function wupdates_prevalidate_purchase_code_JQ9eJ( $purchase_code ) and add this to the start of the function code:
Then in the function wupdates_process_purchase_code_JQ9eJ() { which starts around line 213 comment out lines 245-248 like so:PHP:return true;
And lines 251-253 like this:PHP:// $raw_response = wp_remote_post( $url, $http_args ); // if ( $ssl && is_wp_error( $raw_response ) ) { // $raw_response = wp_remote_post( $http_url, $http_args ); // }
And straight underneath that add this:PHP:// $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 );
Change the details to whatever you want and now use any key to activate the theme.PHP:$response['purchase_code'] = 'valid'; $response['raw_response']['sold_at'] = 'April 1 2017'; $response['raw_response']['supported_until'] = 'Jan 23 2023'; $response['raw_response']['buyer'] = 'MrPloppy';
Thanks a lot, it worked!