Resolved
Overview of the issue
When buying a course in a secondary language, you are redirected to the default course during the checkout process.
Workaround
Please, make a full backup of your site before proceeding.
- Open /wp-content/plugins/learnpress/inc/lp-core-functions.php.
- Look for this method:
function learn_press_get_page_link( $key ) { $page_id = LP()->settings->get( $key . '_page_id' ); $link = '';
- And replace it with:
function learn_press_get_page_link( $key ) { $page_id = LP()->settings->get( $key . '_page_id' ); $link = ''; if ( function_exists( 'icl_object_id' ) ) { $page_id = learn_press_get_page_id( $key ); }
Next steps to resolve this issue
The LearnPress team are in the process of making this plugin compatible with WPML, but we do not have a timeline for when this will be completed. If you would like to express your interest in this effort and help push it along, please let them know via the ThimPress Forum.