Hello
So, if you just install the theme as it is it will need a valid purchase code, i figured something out to go around this:
Navigate to ' /inc/admin ' and open the file verify-purchase.php
Navigate to the line 153 or search for the folowing code:
PHP:
if( isset( $data['error'] ) ) {
echo '<p class="error">' . esc_html($data['error']) . '</p>';
return;
}
Now override with the following code:
PHP:
if( isset( $data['error'] ) ) {
/*echo '<p class="error">' . esc_html($data['error']) . '</p>';
return;*/
$this->activate( $code, $data );
$redirect_url = ( class_exists( 'Redux' ) ) ? admin_url( 'themes.php?page=theme_options' ) : admin_url( 'themes.php?page=es-install-plugins' ) ;
echo '<p class="updated">'.esc_html__('Theme is activated! You will be redirected in a few seconds','emallshop').'
<script type="text/javascript"> setTimeout( function() { window.location.href = "' . esc_url($redirect_url) . '"; }, 3000 ); </script>
</p>';
}
Now we also need to override the following code in the same file:
PHP:
if( ! $data['verified'] ) {
echo '<p class="error">'.esc_html__('Code is not verified!','emallshop').'</p>';
return;
}
Just override it with:
PHP:
if( ! $data['verified'] ) {
/*echo '<p class="error">'.esc_html__('Code is not verified!','emallshop').'</p>';
return;*/
$this->activate( $code, $data );
$redirect_url = ( class_exists( 'Redux' ) ) ? admin_url( 'themes.php?page=theme_options' ) : admin_url( 'themes.php?page=es-install-plugins' ) ;
echo '<p class="updated">'.esc_html__('Theme is activated! You will be redirected in a few seconds','emallshop').'
<script type="text/javascript"> setTimeout( function() { window.location.href = "' . esc_url($redirect_url) . '"; }, 3000 ); </script>
</p>';
}
Now we can activate it with any purchase code
Ahoy,
Phineas