[Quick fix] Page not found when trying to pay
Hi Hirebee users,
For anyone interested here's a quick fix for the 404 error page you get when trying to proceed to a payment page. This involves changing the core hirebee theme, however I expect appthemes to have solved this issue in the near future. However until their update is released this should work.
1. Go to your includes folder inside the hirebee theme folder "hirebee/includes"
2. proceed to the payments folder and open the file "order-templates.php"
3. Scroll down to line 29 Where you'll see the following code:
PHP Code:
if ( ! current_user_can( 'edit_post', $order->get_id() ) ) {
return appthemes_locate_template( '404.php' );
}
Remove the '!'
So it looks like this:
PHP Code:
if ( current_user_can( 'edit_post', $order->get_id() ) ) {
return appthemes_locate_template( '404.php' );
}
Save the file and done. Payments work again.